See perlretut for a tutorial and perlre for the details
In reply to Re: pattern matching by FunkyMonk in thread pattern matching by Spooky