The maximal matching quantifiers ?, *,+ and {n,m} will in general match as much of the string as possible while still allowing the whole regexp to match.

 
  • 我试图以我的理解重新组织一下,在保证能够匹配的前提下,总是试图尽早的匹配,如果在给定位置,有多条路可走,优先走最左边的路,选定了一条路了,就能走多远走多远。
今日热词
目录 附录 查词历史