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

Re^2: Need a regex to replace incomplete html entities

by ww (Archbishop)
on Nov 20, 2016 at 16:01 UTC ( [id://1176210]=note: print w/replies, xml ) Need Help??


in reply to Re: Need a regex to replace incomplete html entities
in thread Need a regex to replace incomplete html entities

Oops. Misread the output.

Nice!

And, for windows, change all the single quotes to doubles.

C:\>echo "one & two &# three &#3 four &#38 five & six" | perl -pe +"s/&(#(3(8(;\K)?)?)?)?//;" "one two &# three &#3 four &#38 five & six"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found