File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,8 @@ whole in memory, but rather buffered in parts in a sliding window of a few KB.
308
308
The window size may grow to fit a pattern match. UTF-16/32 file input with a
309
309
UTF BOM is automatically normalized and matched as UTF-8.
310
310
311
- For example, using Boost.Regex (alternatively use PCRE2 ` reflex::PCRE2Matcher ` ):
311
+ For example, using Boost.Regex (alternatively use PCRE2 ` reflex::PCRE2Matcher `
312
+ or ` reflex::PCRE2UTFMatcher ` to match Unicode UTF-8 input):
312
313
313
314
``` {.cpp}
314
315
#include <reflex/boostmatcher.h> // reflex::BoostMatcher, reflex::Input, boost::regex
@@ -367,6 +368,12 @@ following methods:
367
368
- ` [0] ` operator returns ` std::pair<const char*,size_t>(begin(),size()) `
368
369
- ` [n] ` operator returns n'th capture ` std::pair<const char*,size_t> `
369
370
371
+ Note: POSIX matchers do not generally support group capturing, e.g.
372
+ ` BoostPosixMatcher ` and ` StdPosixMatcher ` do not. RE/flex is an efficient
373
+ backtrack-free DFA-based POSIX engine that supports a limited form of
374
+ capturing, limited to outermost gouping, such as ` (abc)|(def) ` which has two
375
+ groups. This may be extended in a future release to full capturing.
376
+
370
377
To search a string for words ` \w+ ` to display with the column number of each
371
378
word found:
372
379
You can’t perform that action at this time.
0 commit comments