In the above regex expression, I have been trying to catch multiple numbers, but it only catches the first one inputted by the user. for instance if the user says:
It will only take the 7 and cube it to be 343
Instead of taking the cube of 78.
Can anyone give me some more insight into it?
The grouping which enables the cubing is fetched from: