>> Because then the re module wouldn't be thread safe. talin> True, although I suppose that you could add a "last match" to talin> regular expression objects:
talin> re_pattern = re.compile( ... ) talin> if re_pattern.match( string ): talin> text = re_pattern.lastmatch.group( 1 ) No, it would still be thread-unsafe. The re_pattern object can be shared by multiple threads. Skip _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com