Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Bindo (Acolyte)
on Jun 20, 2013 at 10:19 UTC ( #1039935=note: print w/replies, xml ) Need Help??


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

Thank you very much good people. I totally understood the concept. You all are the best. By the way if I get a satisfactory answer to a thread that I have started is there a way of closing/locking it? Cos I receive lot of reminders from root saying that I'd have to reply ...etc. Im just a beginner gentlemen so please let me know if there are any rules that I should follow. thanks

  • Comment on Re^2: Regex pattern to find directories only with digits

Replies are listed 'Best First'.
Re^3: Regex pattern to find directories only with digits
by gurpreetsingh13 (Scribe) on Jun 20, 2013 at 10:40 UTC
    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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2023-03-27 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?