1
Answer

replace first occurance

Mina

Mina

17y
1.9k
1
im trying to find a way in c# to replace first occurance of a regular expression in a string.

so if string = " found 1 found 2 found 3"

i want to do something like :

string = replacefirst("found","")

to give results:

string = " 1 found 2 found 3"

thanx


Answers (1)