Page 1 of 1

need a regex

Posted: Wed May 29, 2002 4:56 pm
by Kevin
I need a regex to delete every character on a line starting at the first comma from the left (inclusive if there is one) to the end of the line.

Thanks.

Re: need a regex

Posted: Wed May 29, 2002 6:47 pm
by Roy Beatty
Try

Find...: ^\([^,]*\),.*$<br>
Replace: \1