Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Regex help needed

by davido (Cardinal)
on Apr 23, 2012 at 10:28 UTC ( [id://966572]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "$+{first} $+{last}\n" 
        if m/^
    ...
            (?<first>   [^%]+ ) %
            (?<id>    A [^%]+ )
           /x;
    
  2. or download this
    print "$2 $1\n"
        if m/^([^%]+)%([^%]+)%(A[^%]+)/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-18 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found