Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Replace newlines only if not inside braces

by LanX (Chancellor)
on Feb 11, 2013 at 14:35 UTC ( #1018153=note: print w/ replies, xml ) Need Help??


in reply to Re: Replace newlines only if not inside braces
in thread Replace newlines only if not inside braces

Works! =)

But it took me some time to understand why all edgecases are covered, though I'm pretty sure that I already saw this technique before.

Cheers Rolf

  • Comment on Re^2: Replace newlines only if not inside braces

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-06-29 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (366 votes). Check out past polls.