REGEX For common courier tracking numbers
I was on the hunt not only to find the different variations each courier had for their tracking numbers but also a regex to match. Most of the google fu I found was outdated. Fedex “recently” (months? years? days?) changed from a 12 digit to 15 digit system. And NO, tracking numbers are not totally random. There is usually a space separation on the printed labels you see. Each of the spaced out subsets have a meaning to the courier as well as a checksum. Checksum being, a pre selected sequence of particular number positions added together then divided by a pre selected number. That you can search up yourself if you like. I didn’t find all too much on that matter either.
I am not very good with regex so if there are any suggestions by l33t coderz, they are more than welcome. On with the codes:
/****
[ UPS ]
9 digits, or 1Z+whatever digits
The quick brown fox 1Z9999W99999999999 jumps over the lazy dog.
*/
$ups = '/(\b\d{9}\b)|(\b1Z\d+\b)/';
/****
[ Fedex ]
12 digits, 15 digits, or '96'+ 20 digits
The quick brown fox 999999999999 jumps over the lazy dog.
*/
$fedex = '/(\b96\d{20}\b)|(\b\d{15}\b)|(\b\d{12}\b)/';
/***
[ USPS ]
30 digits, '91'+20 digits, 20 digits (untested)
< TOTALLY UNTESTED BY ME AT THIS TIME >
*/
$usps = '/(\b\d{30}\b)|(\b91\d+\b)|(\b\d{20}\b)/';
I did get the common characters per courier from Packagetrackr. I don’t know how much of it is accurate, but from what I could tell from my experience with FedEx and UPS it seemed to be in line. I was unable to find an all inclusive source.
useful information ,thanks for your sharing.
Thanks of this package tracker i will try this hoping it will help.
Hi, the article is so wonderful, I am interested in it. I will pay attention to your articles.
Emphasis on shares, the state council has MBT Shoes instruct the relevant departments to MBT Shoes Uk improve MBT Shoes MBT Shoes Clearance Sale school bus standard, completes MBT Shoes the school bus MBT Shoes Clearance design, MBT Shoes Uk production, transformation, equipped with the work, MBT Shoes and establish the MBT Shoes Sale corresponding management system. Well the school bus funds needed for MBT Shoes Uk MBT Karani Shoes the work by the central and local governments share, multiparty raise. To clear the local government and department responsibility, strict liability ZhuiJiuZhi, malignant MBT Shoes Clearance accidents MBT Shoes Sale happened to serious processing according to law.
I find it very useful the info you gave, especially for people who a looking to do what to do with their Flash gallery.
I will immediately grab your rss feed to stay privy of any updates!
. Hi. I am very satisfied I found this webpage, I truly discovered you by mistake, whilst I’d been searching Aol for another thing, Anyway I am here now and would just like to regards for the wonderful website posting as well as a all round useful web web site .
In addition, it revolved all around exactly how the lady was still struggling to overcom this kind of gamer as well as this gamer although the girl seemed to be sure she had been this “better” tennis participant together with the “better” practicing tennis photographs (as well as superior practicing tennis kit).
WJZLXZYSWMLGRL
Voici le prochain ajout certainement superbe pour votre garde-robe. Un sac Adjani Lancel .
i like you article . thanks for sharing.
Valuable information ..I am delighted to read this article..thank you for giving us this useful information. Great walk-through. I value this post.
Fake Oakley sunglasses blend fashion and technology perfectly
A good article, worth sharing for you, see you your article to your future success believe a great help, hope to see more of you share good article, thank you for sharing
A single flower does not make up the beautiful spring, a person always single-handed, they can remove mountains and fill seas. Life is the cells of the body, to the body of a person sound, needless to say to every cell of sound.
No honest what dignity, when l was gone, the body does not have the life, faith is the supreme virtue, half the truth is often a palpable lies, sincere person, way of heaven; person of sincerity, the way of the.
Chandler said this season and the heat in the competition, which the knicks in some places do and is not good enough, he reminded his teammates of games to pay attention to the details Cheap Jerseys, “you should go and the best teams. An ox or Miami, sooner or later, we all have to go through. If it is the heat Cheap NFL Jerseys, we will give every game as a final to treat. We in the game and they make a lot of mistakes, we need to do better.” Chandler said, “the regular season and playoffs entirely different against the Miami heat Cheap Team jerseys, when must always be careful, maybe you just made a mistake, but it is likely to cost the game effort.”
Among the brands different Nike Air Ford Ids VCM Max shoes To meet their anticipations. He benefitted from a wide consultation and their record sales are telling. Proof of his popularis is that some of its modles t have simulated or COPIS in the neighborhoods of the world IDS VCM. lyj
Thanks for sharing your thoughts, as a programmer, it’s really important to understand the syntax very well.emt training schools
OBD2, Autoboss V30, EOBD, OBD, Car Fault Code Readers, car code Scanners 100Z
“And so it has been, and so it is written
On the doorway to paradise
That those who falter and those who fall
Must pay the price”
I am very glad to read such a good article, hope you have more wonderful articles published.
I like your article, it beautiful sentences, the style is pure and fresh, read will let a person feel comfortable, then I will often visit your blog.
Your article, concise, beautiful, pierce to the heart of the matter, is a rare good article.
I almost accidentally visited to this site Cheap Jerseys, but stayed here for a long time. Stayed because everything was very interesting. Surely will share with all my friends!….
So good discussion, look forward forward for more information.
I like your article, I will bookmark your blog and take the feeds also…I am happy to find so many useful info here in the post, we need develop more techniques in this regard, thanks for sharing.
Thank you for another fantastic article. Where else could anyone get that type of info in such a perfect way of writing?hope you have more wonderful articles published.
LTD is the largest Automotive Diagnostic tools supplier in China,offer benz star,bmw gt1/ops,honda hds,Lexia-3 Citroen/Peugeot Diagnostic tool,x431,mb star 2008. 100Z Lexia
Lexia 3