See the perlre manpage for more info.print "[$1]" while "foo bar baz quux" =~ /\G(\w+) ?/g; __output__ [foo][bar][baz][quux]
_________
broquaint
In reply to Re: Infinite loop regex
by broquaint
in thread Infinite loop regex
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |