使用正则进行仅限一层(外层JsonArray,内层JsonObject)的JsonArray格式校验
(?:"((?:(\\")|[^"])+)")
"key" 捕获有值
(?:"((?:(\\")|[^"])*)")
"" 捕获无值及有值
(?:(?:"((?:(\\")|[^"])+)"):(?:"((?:(\\")|[^"])*)")) a
"key":" 3kjk" 捕获key-value
(?:(?:a,)*a) b
(?:(?:(?:(?:"((?:(\\")|[^"])+)"):(?:"((?:(\\")|[^"])*)")),)*(?:(?:"((?:(\\")|[^...
原创
2021-08-18 18:40:39 ·
300 阅读 ·
1 评论