doc: correct syntax for "extended" option setting

Extended syntax (ignore whitespace) is controlled with (?x) and (?-x).
This commit is contained in:
Justin Viiret 2016-05-30 14:30:43 +10:00 committed by Matthew Barr
parent 614ca0accf
commit 428bb9a110

View File

@ -124,7 +124,7 @@ The following regex constructs are supported by Hyperscan:
* Case-sensitivity: :regexp:`(?i)` and :regexp:`(?-i)` * Case-sensitivity: :regexp:`(?i)` and :regexp:`(?-i)`
* Multi-line: :regexp:`(?m)` and :regexp:`(?-m)` * Multi-line: :regexp:`(?m)` and :regexp:`(?-m)`
* Dot-all: :regexp:`(?s)` and :regexp:`(?-s)` * 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 * The :regexp:`\\b` and :regexp:`\\B` zero-width assertions (word boundary and
'not word boundary', respectively). 'not word boundary', respectively).