Alternatively, the ‘U’ modifier may be used to make all repetiton operators lazy. Differentiating between greediness and laziness is key to fully understanding advanced regular expressions.
2
在正则表达式中单独使用*或+时,默认是匹配尽可能多的数据,即贪婪匹配。
Match zero or more times. Match as many times as possible.