exampleExample input abc55def789KK23GOOD9999910ONEM109ORE19k6
abc55def789KK23GOOD9999910ONEM109ORE19k6 output 789 109Output
789 109 exampleExample input abcdef
abcdef output -1Output
-1 thisThis is what I need to achieve via the regex code. I
I have gone through innumerousnumerous 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]")
rx("[0-9][0-9][0-9]""\\-""[0-5][0-5]") butBut then I couldntcouldn't understand the smatchsmatch flag and how to retrieve the results.