<regex> library in C++ STL

Main classes

These classes encapsulate a regular expression and the results of matching a regular expression within a target sequence of characters.


These functions are used to apply the regular expression encapsulated in a regex to a target sequence of characters.


The regex iterators are used to traverse the entire set of regular expression matches found within a sequence.


This class defines the type of objects thrown as exceptions to report errors from the regular expressions library.


The regex traits class is used to encapsulate the localizable aspects of a regex.

More Useful Links

Rated as one of the most sought after skills in the industry, own the basics of coding with our C++ STL Course and master the very concepts by intense problem-solving.

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :