Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: end of line anchor in regex

by FunkyMonk (Chancellor)
on Dec 09, 2007 at 16:20 UTC ( #655967=note: print w/replies, xml ) Need Help??


in reply to end of line anchor in regex

You can use the /m modifier to make $ match newlines: $text =~ s/hello$//gm;

See perlre for more information

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655967]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2018-06-24 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?