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

Re^2: Tiny little paragraph wrapper

by GrandFather (Cardinal)
on May 31, 2005 at 03:37 UTC ( #461914=note: print w/ replies, xml ) Need Help??


in reply to Re: Tiny little paragraph wrapper
in thread Tiny little paragraph wrapper

Try this regex s/(.{5,12}\s+)/$1\n/g. On the sample text it gives: :-)

Check out http://www.perlmonks.org/?node_id=438189 (it has nice line-wrapping snippet).


Comment on Re^2: Tiny little paragraph wrapper
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://461914]
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: (10)
As of 2014-12-21 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls