in reply to Extracting substrings from scalars

Suppose you show us what you have tried and tell us what you have read already. Just in case you haven't done your homework I'd suggest you read the Perl documentation first: perlretut, perlrequick, perlre and perlreref.


DWIM is Perl's answer to Gödel