text: public string replaceFirst(string replacement){reset();java.lang.StringBuffer buffer = new java.lang.StringBuffer(input.Length);if (find()){appendReplacement(buffer, replacement);}return appendTail(buffer).ToString();}