Relative Content

Tag Archive for c#regex

Regex Remove spaces in front of punctuation [duplicate]

This question already has answers here: Remove spaces before punctuation with RegEx (2 answers) Closed last month. Hi I’m trying to replace spaces in front of punctuation using regex. I want to use Replace in c# – trying to replace with Regex a call like this: value = value .Replace(” !”, “!”) .Replace(” .”, “.”) […]