Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regex help needed

by Kenosis (Priest)
on Apr 23, 2012 at 15:08 UTC ( #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
Node Status?
node history
Node Type: note [id://966608]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2017-12-16 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (449 votes). Check out past polls.

    Notices?