Return to Snippet

Revision: 12672
at March 24, 2009 11:31 by atr000


Initial Code
USPS:

/\b(91\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d|91\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d)\b/i

FedEX:

/\b((96\d\d\d\d\d ?\d\d\d\d|96\d\d) ?\d\d\d\d ?d\d\d\d( ?\d\d\d)?)\b/i

UPS:

/\b(1Z ?[0-9A-Z]{3} ?[0-9A-Z]{3} ?[0-9A-Z]{2} ?[0-9A-Z]{4} ?[0-9A-Z]{3} ?[0-9A-Z]|[\dT]\d\d\d ?\d\d\d\d ?\d\d\d)\b/i

Initial URL
http://stackoverflow.com/questions/619977/regular-expression-patterns-for-tracking-numbers

Initial Description

                                

Initial Title
Regular Expression patterns for Tracking numbers. - Stack Overflow

Initial Tags

                                

Initial Language
Python