Created
July 28, 2013 11:29
-
-
Save binnng/6098268 to your computer and use it in GitHub Desktop.
正则的贪婪模式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//开启贪婪模式 | |
/a(.*)z/.exec('aszdfffz'); | |
//禁止贪婪模式 | |
a(.*?)z/.exec('aszdfffz'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment