This is related to the shipmenttracking.alias i updated last night (this morning). Before i posted the alias file, i tried to combine the keyword based, and regex based regex's together into one single regex to simplify future updates (if ups, etc changes their check url)
the regex for ups that i believed would work (and kinda does) is this
^(?:ups (.*)|(1Z.*))-regex
my understanding, is that this regex should return either, but not both (.*) or (1Z.*) as $$1. However look at the results of what it does, and feel free to test
$$1=1Z1-ups 1Z1
see, this works... it detects the first one works, then skips to the end of the
(?:)$$1= | $$2=1Z1-1Z1
this one does not work. It appears that each time it processes a () that does not lead with (?: that it counts up one variable. It seems it does this irregardless of matching. This first
(.*) gets counted as 1, even though it does not match (seen by the null return of $$1), and should be ignored (correct me if i'm wrong), then it procedes to check the other half of the
(?:) . It does return a match, but instead of returning a match on $$1 like it should (again, correct me if i'm wrong), it returns it on $$2. making it very difficult to make one alias work for both of them
if there is another way to do this, or if i am using the incorrect syntax for the regexp, please let me know...