in reply to simple regexp question
Try the most excellent documentation: perldoc perlretut perldoc perlreref
(Hint: | for "or", but you probably want ? instead)
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg