Yes C# allows you to do whatever you want. The runtime libraries are fairly extensive, and you have regular expressions in the
System.Text.RegularExpressions Namespace
[
^].
For really complex text processing
Antlr[
^] provides the performance and expressiveness required to deal with just about any text processing requirement.
Regards
Espen Harlinn