Regular Expressions?

KrayZee--J newsreply at jtwok.worldonline.co.uk
Fri Nov 29 03:48:50 EST 2002


Is the Regular Expressions module really buggy or is it just me? Almost
every expression I type in gives an error. Many expressions which I have
tested and work in JScript give errors in python.

I want to make a RE which will match an IP address. This one works in
JScript:

(\d{1,3}\.){3}\d{1,3}

In python it works but matches only 1 digit for the last octet of th IP ie.
192.168.0.100 becomes 192.168.0.1

Any suggestions would be appreciated.

John





More information about the Python-list mailing list