I need a to match a comma in string, this is the example:
dog:Cat,hi:Bye,num:,1,2,3,5,6,7,8,9,10,this:that
I want to match ONLY the comma with te green arrow using a regex or something
The value from "num:" always will be similar. example "num:,4,7,9" or "num:,2"
Thanks in advance
This should do it:
,(?=\w+:)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With