Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by ronperl (Initiate)
on Dec 21, 2001 at 11:08 UTC ( [id://133720]=perlquestion: print w/replies, xml ) Need Help??

ronperl has asked for the wisdom of the Perl Monks concerning the following question:

how do i replace link=#ccffcc in a html line like:
<BODY text=#FF9900 alink=#44FF22 link=ccffcc>
with link=#000000 ?

thank you

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: how do i replace link=#ccffcc (ex.) in a html line...
by Juerd (Abbot) on Dec 21, 2001 at 11:23 UTC
    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
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://133720]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found