Shouldn't it rather be /^[^+]/ ?
I'd also test for following \w+ to avoid whitespace confusion.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
In reply to Re^2: Greedy flip flop operator?
by LanX
in thread Greedy flip flop operator?
by chengchl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |