class Program
{
static void Main(string[] args)
{
string s = "the U.S.A love UK";
Console.WriteLine(replace(s));
}
public static string replace(string s)
{
s = Regex.Replace(s, @"^U.S.A", " United state Of America");
s = Regex.Replace(s, @"^Uk", "United kingdom");
return s;
}
}
Why its not replacing the U.S.A with " united state of Amiriaca and uk with united kingdom i did it but its not workin