Open alexios-angel opened 1 month ago
The named capture groups (?P<name>...) and (?'name'...) are unimplemented. If these are implemented in CTRE's grammar then it will be closer to PCRE.
(?P<name>...)
(?'name'...)
#include <ctre.hpp> int main(){ ctre::match<"(?<name>a)">; // These do not work ctre::match<"(?'name'a)">; ctre::match<"(?P<name>a)">; }
Compiler explorer link
(?'test1'test1)|(?<test2>test2)|(?P<test3>test3)
Regex101 link
I'm not sure if this is worth more complex grammar. Functionality is there, will update README.
In longterm I would actually prefer to migrate to ECMAscript, as PCRE is really terrible turing complete syntax.
The named capture groups
(?P<name>...)
and(?'name'...)
are unimplemented. If these are implemented in CTRE's grammar then it will be closer to PCRE.Compiler explorer link
Regex101 link