capture avoidance



I am interested in a clarification of the description in the document
"http://tcl.tk/man/tcl8.5/TclCmd/regexp.htm";.
Does the compilation of regular expressions adjust the generated code
to the case if no "subMatchVar" is specified for a function call?
- Is an optimization or conversion to "non-capturing parentheses"
performed?
- Is a single character "(" implicitly treated as if it would be
replaced by the string "(?:" at the appropriate places?

Regards,
Markus

.


Quantcast