in reply to Pulling first 10 characters out of string?
perlre Perl regular expressions, the rest of the story perlreref Perl regular expressions quick reference [download]
perldoc perlre [download]