in reply to A regular expression

You should take a good look at least at perlretut, and probably at some of the other Perl regular expression documentation.

True laziness is hard work