From 428bb9a110d7a0815e9ecc6c3bb78234b062af7b Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Mon, 30 May 2016 14:30:43 +1000 Subject: [PATCH] doc: correct syntax for "extended" option setting Extended syntax (ignore whitespace) is controlled with (?x) and (?-x). --- doc/dev-reference/compilation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).