通常你的比赛有点像这样:
var myString = "Hello Alex, I am John";
matches = myString.match(/"Hello ([hisName].+) I am ([yourName].+)/);
console.log(match.hisName);
console.log(match.yourName);
但是在javscirpt中可以在正则表达式中命名你的匹配吗?
有点像这样:
UIViewControllerBasedStatusBarAppearance