Closed xinlingqudongX closed 1 year ago
const strictJSONReg = /^[\x20\x09\x0a\x0d]*(\[|\{)/;
const jsonReg = /^\d+$|^".*"$|^\[.*\]$|^\{.*\}$|^true|^false$/;
在json.js中匹配JSON的正则不能匹配所有
Regex matching JSON in json.js cannot match all
我现在用的正则为
The regex I am using now is