regular expression back references

Matthew ruach at chpc.utah.edu
Mon Aug 11 18:42:57 CEST 2003


> >>> macExpression = r"[0-9A-F]{1,2}(\:|\.|\-)([0-9A-F]{1,2}\1){4,4}[0-9A-F]{1,2}$"


Thanks very much that will work a lot better. I am going to save the
other code you (and the others) offered for later. It may be useful
later on in the program.

Thanks
-matthew




More information about the Python-list mailing list