It is, of course especially clean when you are looping:$dir = "/home/angryman/www/content/m/i/2000/5/31/r_standoff.gif"; ($dir =~ /content(.*)/) && ($after = $1);
while (<>) { (/foo(.*)/) && ($foo = $1); }
In reply to RE: regexp to return rest of string
by byoung
in thread regexp to return rest of string
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |