Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Regular expression to list all files of type in folder

by runrig (Abbot)
on Dec 05, 2012 at 21:48 UTC ( [id://1007409]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular expression to list all files of type in folder
in thread Regular expression to list all files of type in folder

Why would that regex match if the other doesn't?

Replies are listed 'Best First'.
Re^3: Regular expression to list all files of type in folder
by 2teez (Vicar) on Dec 05, 2012 at 21:52 UTC

    The OP said the other does match. Please, check the OP last statement.
    "..The problem is I have a file named "test.jpg" and another called "testl.jpg" and the expression only picks up the first one. Other than that, it works fine..."

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
      Unless I'm mistaken and missed some un-commented update, you added a '.+?' to the beginning of the OP's regex. So I still don't understand why you think that will match any better, as the '.+?' is superfluous.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-19 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found