[Tutor] Search and Replace

Chad Crabtree flaxeater at yahoo.com
Sat Jun 25 01:26:15 CEST 2005


Reed L. O'Brien wrote:

>I ma trying to write a script to search adn replace a sizable chink
of
>text in about 460 html pages.
>It is an old form that usesa search engine no linger availabe.
>
Well in the vein of Kents suggestion there is 
http://www.crummy.com/software/BeautifulSoup/ however it will change
the 
output some.  So if you have some bizarre markup I think it'll try to

fix it. Which afaik most html parsers outputers will do.  I don't
know 
how to do regex's so I would just do he string manipulation method. 

Good Luck

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Tutor mailing list