in reply to Rexgrep

How about using the funny symbols just for kicks? $string =~ /.*\//; $page = $'; print "$page\n";