public static ReplaceFirst ( string input, string oldValue, string newValue ) : String | ||
input | string | The string to examine. |
oldValue | string | The value to replace. |
newValue | string | the new value to be inserted. |
리턴 | String |
public static String ReplaceFirst(string input, string oldValue, string newValue)
{
Regex regEx = new Regex(oldValue, RegexOptions.Multiline);
return regEx.Replace(input, newValue, 1);
}