星空网 > 软件开发 > ASP.net

【正则表达式】从json数组中抽取id列表

有如下数组,要从中取出id:

"[\"3812662409\",\"3812633637\",\"3812627686\",\"3812651467\",\"3812628047\",\"3812650203\"]"

正则匹配可以直接用(\d+),假定上述数组为变量名为input的字符串,C#中可以写作:

List<string> idList = new List<string>();foreach(Match item in Regex.Matches(input, @"\d+")){  idList.Add(item.Value);}




原标题:【正则表达式】从json数组中抽取id列表

关键词:JS

JS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

广东海运越南:https://www.goluckyvip.com/tag/104576.html
深圳到越南海运:https://www.goluckyvip.com/tag/104577.html
越南的海运费:https://www.goluckyvip.com/tag/104578.html
Buy Box:https://www.goluckyvip.com/tag/10458.html
中国到越南海运几天:https://www.goluckyvip.com/tag/104580.html
从中国到越南海运运费:https://www.goluckyvip.com/tag/104581.html
E-Bike品牌EMotorad获战略融资!:https://www.kjdsnews.com/a/1840707.html
Shopee订单量激增5倍多,越南成韩国美容品牌主要消费市场:https://www.kjdsnews.com/a/1840708.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流