Getting started with regex

We will be create a new class in C# called Chapter9. Here, we will create various methods to illustrate the use of regex.

Getting ready

For the purpose of this book, we will create a simple console application to illustrate the use of regex. In reality, you would probably not have this logic mixed in with your production code, because this would result in code being rewritten. The best place to add something like regex is in a helper class within an extension method.

How to do it…

  1. Start by right-clicking the solution, going to Add, and then to New Project from the context menu:
    How to do it…
  2. The Add New Project window opens up. Select the ...

Get C# Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.