Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: how do i replace link=#ccffcc (ex.) in a html line...

( #133721=categorized answer: print w/ replies, xml ) Need Help??

Q&A > regular expressions > how do i replace link=#ccffcc (ex.) in a html line... contributed by Juerd

Well, using and editor and a keyboard would be one way to do such a thing.
s/#ccffcc/#000000/ can be used in a variety of editors, and with Perl too.

If you're on a *nix system and want to replace all occurences in a file, you could use
perl -i -pe's/#ccffcc/#000000/' file.html
On DOS-based systems you probably need to use double instead of single quotes.

Good luck!

Comment on Answer: how do i replace link=#ccffcc (ex.) in a html line...
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2014-07-12 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls