What is the best way to do the following in Java.
I have two input strings
this is a good example with 234 songs
this is %%type%% example with %%number%% songs
I need to extract type and number from the string.
Answer in this case is type=”a good” and number=”234″
Thanks
You can do it with regular expressions: