Hi!
I'm trying to figure out how to write the regexp pattern for a text which consists of many values. ex. "1,3,55,7" or "4,2,7,3,6,8,13,33,453". So the amount of values does not matter, and the separator shall be ",".
Thanks!
Artheus
Printable View
Hi!
I'm trying to figure out how to write the regexp pattern for a text which consists of many values. ex. "1,3,55,7" or "4,2,7,3,6,8,13,33,453". So the amount of values does not matter, and the separator shall be ",".
Thanks!
Artheus
Change the last "+" to a "*" if you also want to replace a number with no commas, e.g. "53".Code:'/[0-9]+(,[0-9]+)+/'
Thank you!