in reply to Re: reg-exp problem
in thread reg-exp problem

... and if you don't understand perlre (it's more reference documentation than introduction) read perlretut instead.

Or you could use the module YAPE::Regex::Explain, which gives you a human readable description of what it matches.