Created
October 10, 2012 04:00
-
-
Save zhuzhuaicoding/3863071 to your computer and use it in GitHub Desktop.
$1,...属性是挂在正则表达式对象RegExp对象
This file contains hidden or 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
| var myRe = /d(b+)d/g; | |
| var myArray = myRe.exec("cdbbdbsbz"); | |
| console.log(RegExp.$1);//bb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment