has a question when learning greedy matching of regular expressions. In the following example,
a.*?b abaab abaab
if it is said to match as few characters as possible between an and b, shouldn"t it match ab and ab? When a regular expression matches a string, it should match from left to right.
then the following example,
a*?b. abacb
ab acb ab b
I don"t quite understand. Please give me some advice. be deeply grateful!