Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Tricky regex problem (updated)

by AnomalousMonk (Bishop)
on Jul 22, 2020 at 15:34 UTC ( #11119660=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $input_text =~ s{
        ^ ([#]{2,5}) \s+ [^\n]+ \s+ (?= ^ \1 [^#])
        }
        {}xmsg;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-10-22 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (227 votes). Check out past polls.

    Notices?