HomeCoursesWorking with Regular Expressions in C#

Intermediate

1h 27min

Working with Regular Expressions in C#

Gain insights into pattern matching with regular expressions in C#. Explore data validation, information extraction, and more using String and Regex APIs with practical examples.
Join 2.7 million developers at
Overview
Content
Reviews
Regular expressions provide an extremely powerful method for pattern matching with strings. They are very useful for parsing information like dates, phone numbers, or zip codes from important text files, such as code files, log files, spreadsheets, or documents. The course discusses everyday use cases of regular expressions, e.g., data validation, information extraction, pattern matching, and search and replace. This course will teach you the core concepts of pattern matching, character classes, special and meta characters, and quantifiers. You will also learn conditional regular expressions including lookahead and lookbehind assertions. You will also learn the APIs used in C# for regular expressions with hands-on code widgets. This course will teach you how to perform pattern matching with a regular expression using String and Regex APIs for the above-mentioned practical use cases in C#.
Regular expressions provide an extremely powerful method for pattern matching with strings. They are very useful for parsing inf...Show More

WHAT YOU'LL LEARN

An understanding of regular expressions and their applications
Hands-on experience with regular expressions using C# APIs
Working knowledge of RegexOptions, capture groups, and backreferences
The use of regular expressions through string operations
Familiarity with core concepts of character classes, special and meta characters, quantifiers, and conditional regular expressions
An understanding of regular expressions and their applications

Show more

TAKEAWAY SKILLS

Strings

Object Oriented Programming

Content

1.

Introduction

4 Lessons

Get familiar with C# regex concepts, APIs, string methods, and practical applications.

2.

Building Blocks of .NET Regular Expressions

5 Lessons

Unpack the core of .NET regular expressions, including syntax, groups, backreferences, and practical applications.

3.

Advanced Concepts

1 Lessons

Master the steps to manage advanced regex topics, considering culture, security, and performance.

4.

Course Wrap Up

3 Lessons

Grasp the fundamentals of regex, their applications, and security practices in C#.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.

Course Author:

Developed by MAANG Engineers
Every Educative lesson is designed by a team of ex-MAANG software engineers and PhD computer science educators, and developed in consultation with developers and data scientists working at Meta, Google, and more. Our mission is to get you hands-on with the necessary skills to stay ahead in a constantly changing industry. No video, no fluff. Just interactive, project-based learning with personalized feedback that adapts to your goals and experience.

Trusted by 2.7 million developers working at companies

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

AI Prompt

Build prompt engineering skills. Practice implementing AI-informed solutions.

Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

Explain with AI

Select any text within any Educative course, and get an instant explanation — without ever leaving your browser.

AI Code Mentor

AI Code Mentor helps you quickly identify errors in your code, learn from your mistakes, and nudge you in the right direction — just like a 1:1 tutor!

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath