re difference between python 1.5 and python 2.1.2

Jason Orendorff jason at jorendorff.com
Wed Feb 6 12:22:52 EST 2002


Gillou wrote:
> re.compile(r'((ftp|http)://[\w-]+(?:\.[\w-]+)*(?:/[\w-\.?=]*)*)')
                                                       ^

Put a backslash before the last - in the regular expression.
1.5.2 should not have accepted this.  It's a bug in 1.5.2.

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list