klenwell information services : SpecialCocktailNapkin

Revision [1011]

This is an old revision of SpecialCocktailNapkin made by KlenwellAdmin on 2009-01-17 00:46:41.

online cocktail napkin

links and notes for later organization
CocktailNapkin2008 2008 Napkin
CocktailNapkin2007 2007 Napkin

in case you missed 1978
perfect weather/dead oceancurrent
pastebin: Paste20090110 Klenwell Form Helper
python regex (I could have sworn I pasted this here before):
import re

# compile
html = "'<html>\n<head>\n<title>Title</title>\n</head>\n</html>"
regex = re.compile('<.*?>',)
result = regex.search(html)
print result.group()

# ungreedy
html = "'<html><head><title>Title</title>"
print re.search('<.*?>', html).group()

# substitution
dirty = "some alphanum and some other ^$#%&*%!"
rgx = r'[^a-zA-Z0-9]'     # alphanum only!
clean = re.sub(rgx, '',  dirty)