Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
How can I search for and replace Regex in c sharp
1 Réponse
+ 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);
}
}
}