Example input
abc55def789KK23GOOD9999910ONEM109ORE19k6 Output
789 109 Example input
abcdef Output
-1 This is what I need to achieve via the regex code.
I have gone through numerous websites for tutorials but couldn't decipher it as needed.
My idea was to use this regex
rx("[0-9][0-9][0-9]""\\-""[0-5][0-5]") But then I couldn't understand the smatch flag and how to retrieve the results.
rx(R"((?:^|\D)(\d{3})(?!\d))")