Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-07-04 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls