in reply to regex help
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)
|
|---|