[Baypiggies] Python script to modify a large # of HTML files?

Deirdre Saoirse Moen deirdre at deirdre.net
Tue Apr 10 17:30:25 EDT 2018


Not a direct answer to your question, but I've been tempted to post
this for days.
I'd not recommend parsing HTML with Regex.

https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/
(best Stack Overflow answer ever)

Deirdre

On Fri, Apr 6, 2018, at 7:48 PM, Bill Deegan wrote:
> To clarify I'm not asking how to do it.  I understand how to do it.
> 
> I'm being lazy (a trait of any good programmer) and asking if someone
> already has created such a script.> It seemed like inserting the google analytics JavaScript blurb in
> a tree full of HTML files might be something others had done in
> the past..> 
> Thanks,
> Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20180410/e6817da5/attachment.html>


More information about the Baypiggies mailing list