python: http://docs.python.org/lib/re-syntax.html UNIX: http://study-area.org/cyril/scripts/scripts/node41.html other: http://geekswithblogs.net/brcraju/articles/235.aspx