0
How can I search for and replace Regex in c sharp
2 Respuestas
+ 5
using System;
using System.Text.RegularExpressions;
namespace PrettyBoy
{
class Program
{
static void Main(string[] args)
{
string boy = "I am a boy";
string girl = Regex.Replace(boy, "b.y", "girl");
Console.Write(girl);
}
}
}