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

Re^2: Regular Expression Question

by MistaMuShu (Beadle)
on Jul 22, 2004 at 19:00 UTC ( [id://376684]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular Expression Question
in thread Regular Expression Question

Can't you use $folder instead of $1 without loss of generality?

Well, initially I was thinking that since the actual folder names are ######.##a_files (think html folders) that I would find the first part of the name and save it in $1

Now that I look at it again with your replies, I see that it'd be a lot easier if I just negated "_files" and did /(^_files)/

That was silly of me to not escape the dot :( And I'll have to read a bit more on the lookahead find because ?: still does not make perfect sense to me... Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found