/a.*b/ axbzb matches axbzb /a.*?b/ axbzb matches axb as the * quantifier is minimal now /a.*b/ axy121413413bq /a.*?b/ axy121413413bq They both match the same string
Follow me: