Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Matching Newlines in RegExp

by stefan k (Curate)
on Jun 14, 2004 at 13:23 UTC ( #366529=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $e = '\\'   # kind of escape char
    my $s = '\'';  # this is a string to use for splitting
    ...
    }
    my $re = "(?<!\Q$e\E)\Q$s\E";
    $split_re = qr/$re/s;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://366529]
Approved by Happy-the-monk
Front-paged by calin
help
Chatterbox?
[Corion]: I wonder if I should now do it, to have a nice advent calendar series for Christmas ;)
[Corion]: (an infobot is an irc bot that "learns" by remembering sentences of the form "X is Y" and then replying to "What is X" with "X is Y". This surprisingly is enough for a lot of questions)
[choroba]: What is infobot
[choroba]: infobot is an irc bot that "learns" by remembering sentences of the form "X is Y" and then replying to "What is X" with "X is Y"
[choroba]: it works!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-08-17 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (286 votes). Check out past polls.

    Notices?