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

Re: Regex help needed

by Kenosis (Priest)
on Apr 23, 2012 at 15:08 UTC ( [id://966608]=note: print w/replies, xml ) Need Help??


in reply to Regex help needed

This slightly modifies what you already had:

print "$2 $1\n" if /^([^%]+)%([^%]+)%A/;

Hope this helps!

Update: Just now noticed that this is similar to a solution posted by davido. Will remember to have coffee *first*, read all, and then post...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found