Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要 a 来匹配字符串中的逗号,这是示例:
dog:Cat,hi:Bye,num:,1,2,3,5,6,7,8,9,10,this:that
我只想使用正则表达式或其他东西将逗号与绿色箭头匹配
“num:”的值总是相似的。例如“num:,4,7,9”或“num:,2”
提前致谢
这应该这样做:
,(?=\w+:)