in reply to Regular expression queston

To get around what roboticus says, you need to match on MORE THAN zero characters - so consider using the "+" modifier, and ( (?:enable|alternation), or a [set-of-characters] ).

             I hope life isn't a big joke, because I don't get it.
                   -SNL

Replies are listed 'Best First'.
Re^2: Regular expression queston
by Socrates440 (Acolyte) on Jun 20, 2012 at 01:20 UTC
    Ohhh so it did work. What is the missing character near the equals sign?
      The operator is "=~" . Since you are working with $_ anyway, you can actually delete the "$_ =" entirerly, since the regular expression match defaults to matching $_.

                   I hope life isn't a big joke, because I don't get it.
                         -SNL