0
detect integer next to any character java
I want a possible way to detect int next to any character or string. for example 88+34 I want my code to detect and use 34 as it is the next integer to + sign. How is it possible?
1 Réponse
0
Use a Regular Expression which matches a non-digit followed by one or more digits, then return the digits.
The actual expression varies a little with language, but will be similar to /[^\d](\d+)/.