I want to determine whether a string consists of only two words, with one space character between them. The first word should only include alphanumeric characters. The second should include only numbers. An example is: asd 15
I would like to use String.matches. How can I do this or which regex should I use?
Thanks in advance.
You look for something like:
Explanation: