I have an example string like this:
1 23 456 123asd asd123 12 3456789
I want to create a regex to match all only number tokens, so that it would match with 1, 23, 456, 12, and 3456789.
I already tried to create the regex which is \b[^a-zA-Z\s]\d*[^a-zA-Z\s], but somehow it only matches with 23. It won't match with 1, and all the other number tokens after 23.
What am I doing wrong?