Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: matching and backreferencing filenames

by Lotus1 (Chaplain)
on Sep 30, 2011 at 17:58 UTC ( #928883=note: print w/ replies, xml ) Need Help??


in reply to matching and backreferencing filenames

...And # what about camel case extensions? This long list seems # really innefficent. (jpg|JPG|gif|GIF|wmv|WMV|mpg|MPG|avi|AVI)$/

You can do case insensitive matching with the 'i' modifier after the final matching delimiter.

(jpg|gif|wmv|mpg|avi)$/i


Comment on Re: matching and backreferencing filenames
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-06-30 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (789 votes), past polls