Does it? If yes, where can I get the documentation for it... if not, then which would be the best alternative?
It is used in every programming language like C++, Java, and Python.
<regex> library in C++ STL These classes encapsulate a regular expression and the results of matching a regular expression within a target sequence of characters.
Regex support is part of the standard library of many programming languages, including Java and Python, and is built into the syntax of others, including Perl and ECMAScript.
C++11 uses ECMAScript grammar as the default grammar for regex. ECMAScript is simple, yet it provides powerful regex capabilities.
C++11 now finally does have a standard regex library - std::regex.
If you do not have access to a C++11 implementation, a good alternative could be boost regex. It isn't completely equivalent to std::regex (e.g. the "empty()" method is not in the std::regex) but it's a very mature regex implementation for C++ none the less.
Under UNIX-like systems you can use POSIX regex functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With