in reply to Re^2: Regex Optimization Question
in thread Regex Optimization Question

True. I've found that in these cases, doing the regex with pattern memory in its own code block works.
foreach ('foo', 'bar') { { /(oo)/; print("$1\n"); } }

Replies are listed 'Best First'.
Re^4: Regex Optimization Question
by ikegami (Patriarch) on Mar 23, 2006 at 21:54 UTC
    I didn't know that. Neat!