capture avoidance
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

capture avoidance

From: <Markus.Elfring@web.de>
Date: Thu Jun 30 2005 - 11:41:12 CEST

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
Received on Thu Sep 29 14:23:59 2005