A regex with a repeated group and a lazy space character doesn't work like I expect. boost and the online regex demo tools behave as expected. Here's as simple an example as I could easily create:
regex: (([A-Z][a-z]+ *?){1,4}) g
The intent is to match 1 to 4 capitalized words in front of a word starting with g.
A regex with a repeated group and a lazy space character doesn't work like I expect. boost and the online regex demo tools behave as expected. Here's as simple an example as I could easily create:
regex:
(([A-Z][a-z]+ *?){1,4}) g
The intent is to match 1 to 4 capitalized words in front of a word starting with g.
https://gcc.godbolt.org/z/v6KWrasYv
CTRE fails to match multiple capitalized words, and only matches the last one.