Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
[1nickt]: ugh, buying a computer is hard for an old person
[stevieb]: How do you mean?
[1nickt]: They assume that I want things I don;t and don;t provide things I do want. Looking for a 17" laptop with 4k (even 3K display) and full numeric-pad keyboard.
[1nickt]: They assume that if I want a 17" monitor I could not possibly want 4k screen
[1nickt]: They assume I do not need a DVD drive

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-03-26 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.