Replace all non-word characters with a space
c#, regex
Solution
var cleaned = Regex.Replace(given, "[^A-Za-z]", " ");
Problem
I have a regex ``` [A-Za-z] ``` and a string, such as Hi! This is a string. I want to replace all charcters that are not in the Regex with space. So, I'll end up with Hi This is a string How is this done?