Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Finding the last statement in string of atmost similar pattern

by Rahul6990 (Beadle)
on May 06, 2013 at 07:33 UTC ( [id://1032203]=note: print w/replies, xml ) Need Help??


in reply to Finding the last statement in string of atmost similar pattern

Use the below step:
1. Define your pattern, do not for get to put '()' around the pattern.
2. Open the file.
3. Apply pattern on each line.
4. After reading the entire file heck '$1' variable, the last matched pattern will present in it.


For help use this link.
  • Comment on Re: Finding the last statement in string of atmost similar pattern

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found