From a02d9e7f4a6fa4d6430d9ffbdcef3423810b140f Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Fri, 29 Jun 2018 11:35:22 -0700 Subject: [PATCH] document use of double quotes to escape case-insensitivity --- NEWS | 5 +++++ doc/script-reference/types.rst | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index 5dbdbcaf5d..69665cde26 100644 --- a/NEWS +++ b/NEWS @@ -266,6 +266,11 @@ New Functionality by whitespace. So for example "/foo|(+i bar)/" will match "BaR", but not "FoO". + For both ways of specifying case-insensitivity, characters enclosed in + double quotes maintain their case-sensitivity. So for example /"foo"/i + will not match "Foo", but it will match "foo". + + Changed Functionality --------------------- diff --git a/doc/script-reference/types.rst b/doc/script-reference/types.rst index d24ce09b8c..36ed0f5bfa 100644 --- a/doc/script-reference/types.rst +++ b/doc/script-reference/types.rst @@ -260,6 +260,10 @@ Here is a more detailed description of each type: trailing whitespace after the ``+i`` designator. So, for example, ``/foo|(+i bar)/`` will match "foo" and "BaR", but *not* "Foo". + For both ways of specifying case-insensitivity, characters enclosed + in double quotes maintain their case-sensitivity. So for example + /"foo"/i will not match "Foo", but it will match "foo". + .. bro:type:: port A type representing transport-level port numbers (besides TCP and