I have a regex problem where I want to match everything until I dont see a comma at the end. In the example here I want to capture Josh,Mike and Richard.
Current regex:
Additional [nN]ames[^:\n\r]:\s([,\sa-zA-Z0-9:/_-]+)\Rrandom
However, I cant rely on the random words section being there so my proposed solution is to have some sort of way for the regex to capture until it doesnt see a comma at the end of the line or something of that sort, but still capture the words until that point. In this example, it would stop at Richard because it doesnt see a comma at the end of line but still captures Richard. Solution would be helpful!!
Example:
Additional Names:Josh,
Mike,
Richard
random wordsa asdoajdioaj : 320



