Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 scrutinizing the Monastery: (16)
As of 2015-06-30 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (787 votes), past polls