Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: regular expression on filenames with absolute path

by ioannis (Priest)
on Nov 05, 2005 at 10:32 UTC ( #505963=note: print w/ replies, xml ) Need Help??


in reply to regular expression on filenames with absolute path

/\/[-.\w]+(.txt|.doc|.pdf|.vsd|.xls|.xlt|.dot|.pot|.ppt|.mpp)$/
Now they will match. Remember, the character class \w means a-zA-Z0-9_, which does not include ., and -.

This assumes that the general logic is correct. Here, we only got the strings to match, in the spirit of the original regex.


Comment on Re: regular expression on filenames with absolute path
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-07-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (196 votes), past polls