Select all after comma with comma included

37 Views Asked by At

Been checking all the regex testers and documentation, and the best outcome I could get was select all without the comma.

String example

ex1,ex2,ex3,ex4,ex5,ex6

Regular expression used

(,(.+))

Output

ex2,ex3,ex4,ex5,ex6

How do I select the comma before ex2

1

There are 1 best solutions below

3
hurtbox On
,.*$

The regex above first searches for a comma, then any character afterwards. The * mark makes the previous search criteria run until finished