Forum OpenACS Q&A: Response to Non Greedy Regexp for Tag Substitution

Collapse
Posted by Gilbert Wong on
to make it non-greedy, just put a ? after the pattern which would usually be greedy (*?, *+, etc). If you are searching for a specific pattern, you probably don't need a non-greedy quantifier. http://www.scriptics.com/man/tcl8.2.3/TclCmd/re_syntax.htm#M12