in reply to Regex on a array
Use the strict pragma and the -w flag, move your regexen to the foreach loop, and be sure to escape any metacharacters in your regular expressions.
---- Coyote