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

Re: In my it is printing in the else i want to get output for the for loop in linux.

by NetWallah (Canon)
on Mar 28, 2022 at 05:58 UTC ( [id://11142442]=note: print w/replies, xml ) Need Help??


in reply to In my it is printing in the else i want to get output for the for loop in linux.

Why are you attempting to match a backslash "\" in a Linux directory structure ?
Some of your other choices in the regex are also questionable: The first part appears to be a "greedy" match for ALL characters.

We could help you if you post some data as to what you are looking for, and some sample directories you want matched.
Show both "match" and "not match" cases, along with what you are attempting to extract.

                "These opinions are my own, though for a small fee they be yours too."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-19 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found