更新时间:2023-11-30 19:35:34
我认为阻止该功能不是一个选择(或者至少是一个不错的选择).您应该在表达式中发现缺陷(正则表达式确实存在陷阱,例如,参见失控正则表达式:灾难性的回溯" [ ^ ]).
I think blocking the function is not an option (or at least a good option). You should find the flaw in your expression (regular expressions do have pitfalls, see, for instance "Runaway Regular Expressions: Catastrophic Backtracking"[^]).