Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to split a string into two lines, intelligently

by GrandFather (Sage)
on Oct 09, 2008 at 23:00 UTC ( #716335=note: print w/ replies, xml ) Need Help??


in reply to How to split a string into two lines, intelligently

My first PerlMonks node provided a solution to a problem very like this one. If you twiddle the values in the quantifier and remove the /g switch then you have the solution you are probably looking for.

See perlretut, perlre and perlreref for more regular expression goodness.


Perl reduces RSI - it saves typing


Comment on Re: How to split a string into two lines, intelligently

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (19)
As of 2015-07-29 17:42 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 (266 votes), past polls