in reply to How to rewrite perl pattern subtitution 's///' into C++11 Regular Expression?

The short answer may be that the the standard C++ library provides support for regular expressions, with functions such as regex_match (see e.g. http://www.cplusplus.com/reference/regex/regex_match/), regex_search (http://www.cplusplus.com/reference/regex/regex_search/), regex_replace (http://www.cplusplus.com/reference/regex/regex_replace/), etc. See also summary information on http://www.cplusplus.com/reference/regex/.

But it seems to me that this question should be best asked on a C++ forum.

Replies are listed 'Best First'.
Re^2: How to rewrite perl pattern subtitution 's///' into C++11 Regular Expression?
by LanX (Saint) on Jan 16, 2017 at 00:37 UTC
    Your links mention "ECMA-Script syntax" for the regexes.

    So a search for differences between JS and Perl should help.

    IIRC does JS Script mostly implement the Perl 4 syntax, so some things will be missing.

    (With little differences like not supporting an /s modifier and requiring something like [^] top match all including newline. )

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!