...

/

Introduction

Introduction

Now we move on to regular expressions in C++. Our first step will be to understand the purpose of this library.

Regular expression is a language for describing text patterns. They need the header <regex>.

Regular expressions are a powerful tool for the following tasks:

  • Check if a text matches a text pattern: std::regex_match

  • Search for a text pattern in a text: ...