Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: get the rest of the text

by moritz (Cardinal)
on Feb 27, 2008 at 09:58 UTC ( #670567=note: print w/replies, xml ) Need Help??


in reply to get the rest of the text

Everything in the line after the regex match is stored in the special variable $'.

But note that using this variable (as well as $` and $&) slows down the regex engine in the whole program. So read the warnings in perlre and keep them in mind.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2020-08-15 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (78 votes). Check out past polls.

    Notices?