Yes. The .NET class libraries provide support for regular expressions. Look at the System.Text.RegularExpressions namespace.