In regular expressions, if there is more than one subsequence that matches at some location in the target sequence, the longest subsequence from the ones that match at that point or, if there is more than one subsequence that has the maximal length, the one that was found first.