Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In other words, I am looking for a match if the line equals:$test = "some_text=\"asdfasdftest.123\""; $extensions="123,456"; if ($test =~ /some_text=".*\.$extensions"/i) { print "IT MATCHES\n"; }else{ print "It does not match\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File extension match
by revdiablo (Prior) on Aug 25, 2003 at 18:40 UTC | |
|
Re: File extension match
by tcf22 (Priest) on Aug 25, 2003 at 18:52 UTC | |
by flounder99 (Friar) on Aug 25, 2003 at 19:38 UTC | |
|
Re: File extension match
by bobn (Chaplain) on Aug 25, 2003 at 18:44 UTC |