I\'d like to use regex with Java.
What I want to do is find the first integer in a string.
Example:
String = \"the 14 dogs ate 12 bones\" >
You're asking for 0 or more digits. You need to ask for 1 or more:
"\\d+"