RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Parcelforce - All Tracking Codes
Expression
^(?<ParcelForceUK>(?:[A-z]{2}\d{7})|(?:[A-z]{4}\d{10}))$|^(?<ParcelForceExport>(?:[A-z]{2}\d{9}[Gg][Bb])|(?:\d{12}))$|^(?<ParcelForceImport>[A-z]{2}\d{9}(?![Gg][Bb])[A-z]{2})$
Description
A combined version of my other three Parcelforce tracking code regexes listed on this site. Uses named capture groups to capture and identify between UK tracking, international export and international import tracking codes. Case insensitive.
Matches
AA1234567 | AAAA1234567890 | AA123456789GB | 123456789012 | AA123456789AA
Non-Matches
non | matching | examples
Author Rating: Not yet rated. Matthew Harris
Source http://www.parcelforce.com/help-and-advice/sending-worldwide/tracking-number-formats
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials