From: Justin Viiret Date: Mon, 30 May 2016 04:30:43 +0000 (+1000) Subject: doc: correct syntax for "extended" option setting X-Git-Tag: v4.2.0^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=428bb9a110d7a0815e9ecc6c3bb78234b062af7b;p=thirdparty%2Fvectorscan.git doc: correct syntax for "extended" option setting Extended syntax (ignore whitespace) is controlled with (?x) and (?-x). --- diff --git a/doc/dev-reference/compilation.rst b/doc/dev-reference/compilation.rst index f3723dc9..21254b22 100644 --- a/doc/dev-reference/compilation.rst +++ b/doc/dev-reference/compilation.rst @@ -124,7 +124,7 @@ The following regex constructs are supported by Hyperscan: * Case-sensitivity: :regexp:`(?i)` and :regexp:`(?-i)` * Multi-line: :regexp:`(?m)` and :regexp:`(?-m)` * Dot-all: :regexp:`(?s)` and :regexp:`(?-s)` - * Extended syntax: :regexp:`(?s)` and :regexp:`(?-s)` + * Extended syntax: :regexp:`(?x)` and :regexp:`(?-x)` * The :regexp:`\\b` and :regexp:`\\B` zero-width assertions (word boundary and 'not word boundary', respectively).