regex syntax

Andreas Volz usenet-spam-trap at brachttal.net
Tue Dec 7 11:37:28 EST 2004


Am 6 Dec 2004 17:43:21 -0800 schrieb and-google at doxdesk.com:

> viel besser als das vergleichbare Regexp:
> 
> >>> re.match('.*\.jpg$', filename)

Ok,now  I've choosen this regex:

> '.*\.(?i)jpe?g'

to get .jpg .JPG .jpeg .JPEG

seems to work. Is this correct?

regards
Andreas



More information about the Python-list mailing list