in reply to
regex subst not DWIM
Well for starters, i think there is a bug in the substitution for $params. I think you wanted
[^\)]*
-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
Comment on
Re: regex subst not DWIM
Download
Code
Replies are listed 'Best First'.
Re^2: regex subst not DWIM
by
girarde
(Hermit)
on Dec 19, 2007 at 22:20 UTC
Thanks!
.*\(([^\)]*)\).*
worked (needed the last bit to lose the brace at the end of the line).
[reply]
[d/l]
In Section
Seekers of Perl Wisdom