in reply to simple regexp question

Try the most excellent documentation: perldoc perlretut perldoc perlreref

(Hint: | for "or", but you probably want ? instead)

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg