Is it possible to get two characters that are in different positions inside the string in the same match (preferably the last one)?
For example:
"xxxx a 12 b " - > "ab"
"xyxyyxxxxx c 23 d " - > "cd"
I know where the characters are in relation to the end of the string. Using the% regex with% get the two separated. I would like to return them in the same result.