(不使用IndexOf)string texto = "We are living in a <upcase>yellow submarine</upcase>.We don't have <upcase>anything</upcase> else.";
Console.WriteLine(Regex.Replace(texto, "<upc
var pattern = 'We are <orgcase>liViNg</orgcase> in a <upcase>yellow submarine</upcase>.'var myRegexp = /<upcase>(.*?)<\/upcase>/g; var str = pattern.replace(myRege