I am trying to find a way in C # to replace the first occurrence of a regular expression in a string.
So if string = ",1,2,3,4,5", I want to do something like
string = replacefirst(",","")
to always give the result:
string = "1,2,3,4,5"
source
share