0
Please I want to add space to this, how do I add space in c# ?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace SoloLearn { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string result = Regex.Replace(input, "[^a-zA-Z0-9_]+"," "); Console.Write(result.Replace(" ","")); } } }
1 Resposta
+ 1
Please I want to add space to this, how do I add space in c# ?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine();
string result = input.Replace(" ", ",");
Console.Write(result);
}
}
}
I hope, it will help! 😊👍