Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Regex pattern to find directories only with digits

by gurpreetsingh13 (Scribe)
on Jun 20, 2013 at 10:40 UTC ( #1039939=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Regex pattern to find directories only with digits
in thread Regex pattern to find directories only with digits

If you are on unix or similar shell, use:

ls|grep -P "^.*\d{8}.*"
-P in grep is for using perl regex within shell grep.


Comment on Re^3: Regex pattern to find directories only with digits
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-11-24 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls