Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: regular expression on filenames with absolute path

by ioannis (Vicar)
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 browsing the Monastery: (8)
As of 2015-07-28 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls