my @result = map { process_file($_) } grep (/(?:foo[34]|bar[12])\.txt/ +i, @files); [download]
In reply to Re: Regex Tuning by Jaap in thread Regex Tuning /(?:(?:foo[34])|(?:bar[12]))\.txt/io by songahji