php-tracking-urls icon indicating copy to clipboard operation
php-tracking-urls copied to clipboard

FedEX longer tracking ids

Open mgtremaine opened this issue 5 years ago • 0 comments
trafficstars

FedEx looks like they added another 12 digits ala

962208503000904212140077878994XXXX

I just hacked the ending match to expand it 3 OR 15 digits.. Won't work for spaces but I was already trimming them. Thought I'd mentioned it here.

            //FEDEX - FEDERAL EXPRESS
            [
                    'url'=>'http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=',
                    'reg'=>'/\b(((96\d\d|6\d)\d{3} ?\d{4}|96\d{2}|\d{4}) ?\d{4} ?\d{4}( ?\d{3}| ?\d{15})?)\b/i'
            ],

mgtremaine avatar Dec 20 '19 19:12 mgtremaine