Update:This code is simplistic. JavaFan's regex (++), above, is much more rigorous.perl -e 'print qq|$_\n| for q|tttt $x=123 ttt @c=qw/1 2 3/; tt $xxx tt +ttt @something|=~/([\$\@\%]\w+)/g' $x @c $xxx @something
All great truths begin as blasphemies.
― George Bernard Shaw, writer, Nobel laureate (1856-1950)
In reply to Re: regex help
by NetWallah
in thread regex help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |