FWIW:

http://www.amk.ca/python/howto/regex/

Check out section 6.3, which presents the same regex that Ken suggested. Also not the parenthetical statement, which I've come across in so many words before. Basically, if you want industrial strength HTML tag processing, you should really consider an actual parser and not a single expression. For most purposes, RegEx is probably fine:

"(Note that parsing HTML or XML with regular expressions is painful. Quick-and-dirty patterns will handle common cases, but HTML and XML have special cases that will break the obvious regular expression; by the time you've written a regular expression that handles all of the possible cases, the patterns will be very complicated. Use an HTML or XML parser module for such tasks.)"

- Brian


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to