What about Regex.Replace ( String, String, Int32 ) (MSDN) ?
An example:
Regex rgx = new Regex(pattern);
string result = rgx.Replace(str, replacement, 1); // The 1 makes the difference
What about Regex.Replace ( String, String, Int32 ) (MSDN) ?
An example:
Regex rgx = new Regex(pattern);
string result = rgx.Replace(str, replacement, 1); // The 1 makes the difference