Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: regular expression on filenames with absolute path

by ioannis (Abbot)
on Nov 05, 2005 at 10:32 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-26 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found