From the course: C# and .NET Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
RegEx and .NET - C# Tutorial
From the course: C# and .NET Essential Training
RegEx and .NET
- [Instructor] You've probably heard the old joke about the programmer who had a problem and decided to solve it with regular expressions and then ended up with two problems. Well, there's a grain of truth in that, but regular expressions definitely have their place in any programmer's toolbox and .NET of course has great support for working with them. In this chapter we're going to see how to define and execute regular expressions, both for finding and replacing content within strings of data. The focus of this chapter is going to be on how to use regular expressions in .NET and not really so much on what they are or how to create regexes in the first place. If you're not already familiar with regular expressions and how they work or how to define them, then it's probably worth your time to learn more about them in the regular expressions essential training course. We'll start by looking at the functions that are used to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.