in reply to Re: Re: Searching file extensions
in thread Searching file extensions
See. perlre for more info on regexes.print "$_ - ", ( /\.(?:html?|cfm|pl)$/ ? "yep" : "nope" ), "\n" for qw/ foo.pl bar.cfm baz.htm quux.xxx /; __output__ foo.pl - yep bar.cfm - yep baz.htm - yep quux.xxx - nope
_________
broquaint
|
|---|