+ 1

What is the problem with this code ?

I was trying to remove the special characters.using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { string input = "Hi,welcome@ to -tut#lane.com"; string result = Regex.Replace(input," [^a-zA-Z0-9]+"," "); Console.Write("{0}",result); } } }

22nd Apr 2020, 8:43 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
2 odpowiedzi
+ 1
Thank you so much coffeeunderrun.
22nd Apr 2020, 8:57 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar