Re: [blogite] Before we update the spec...

Date view Thread view Subject view Author view Attachment view

From: Stuart Langridge (aquarius-lists@kryogenix.org)
Date: Mon Sep 09 2002 - 03:59:55 BST


Ian Hickson spoo'd forth:
> Having implemented it, I don't see that there is much overhead. (And I
> haven't even bothered with optimisations -- I just slurp the whole target
> file in one go and perform a regexp search on it to find a link tag.)

Just out of interest, why specify regexps for this? My plan was to use
Perl's HTML::Parser module (which uses regexps under the bonnet, I
believe). Was it that then we could be assured of it working
cross-language, even in the face of a language's native HTML parser
being non-existent or (worse) wrong?
 
sil

-- 
from string import *;import re,base64;w=base64.decodestring('YXF1YXJp'+
'dXNAa3J5b2dlbml4Lm9yZw==');u='['+lowercase+']';print re.sub(u,'-',w)
while filter(lambda x: x in u,w): s=raw_input('Letter:');u=filter\
(lambda x: x != s,u);print re.sub(u,'-',w)
Message sent over the Blogite mailing list.
Archives:     http://www.aquarionics.com/misc/archives/blogite/
Instructions: http://www.aquarionics.com/misc/blogite/

Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.5 : Mon Sep 09 2002 - 22:05:00 BST