Regex pattern: ^test(?<first>\w+)test$
Sample string: testsomethingtest
I can ask for capture 1 or named capture "first" to get "something" as my answer.
What I cannot do is ask for a key/value map of capture groups when I don't know that "first" is the name of the group, as is the case with user-supplied (run-time) patterns.
Instead of (or in addition to) capturedTexts() returning a simple string list, can we have a method of retrieving all captured texts and the number and/or name that goes with each?
|For Gerrit Dashboard: QTBUG-29079|
|45265,5||QRegularExpression: add method for extracting the capturing group names||dev||qt/qtbase||Status: MERGED||+2||0|