Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Regular expression

by JavaFan (Canon)
on Feb 02, 2012 at 14:42 UTC ( #951451=note: print w/replies, xml ) Need Help??


in reply to Regular expression

You ought to be using an HTML parser. But you may get away with:
s/<span\s+style=\s*"[^"]*font-weight:\s*bold[^"]*"\s*>/<span style="fo +nt-weight: bold">/g;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951451]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-11-18 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?