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

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

by Juerd (Abbot)
on Dec 21, 2001 at 11:23 UTC ( #133721=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > how do i replace link=#ccffcc (ex.) in a html line... - Answer 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-07-24 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (350 votes). Check out past polls.