我正在构建一份包含2列的SSRS报告(2016):
---------------------------------------------
| ID | Service Number | ID | Service Number |
| 1 | A | 11 | K |
| 2 | B | 12 | L |
| 3 | C | 13 | M |
| 4 | D | 14 | N |
| 5 | E | 15 | O |
| 6 | F | 16 | P |
| 7 | G | 17 | Q |
| 8 | H …Run Code Online (Sandbox Code Playgroud) 当我尝试在javascript中运行下面的代码时,浏览器因为灾难性的回溯而挂起,因为设计不良的正则表达式可能无限循环.我需要一个替代表达式或一种方法来防止这个问题:
string temp = "Testing robustness {parent-area-identifier Some text in between the tokens {parent-area-label}";
var strRegExp = new RegExp(/[{](?:[^{}]+|[{][^{}]*[}])*[}]/g);
var arrMatch = temp.match(strRegExp);
Run Code Online (Sandbox Code Playgroud)