I'm building a generic regular expression validator which takes in a value to compare and returns true or false on whether it is a match or not. The validator is tied to custom controls and hence the input is automatically retrieved from a property. I would like to know if .NET has syntax for string replacement within the regex. I don't mean using the Regex.Replace method, I mean using the actual regular expression as a mechanism to replace text with something else. That way I can do:I'm building a generic regular expression valid