|
@@ -20,7 +20,7 @@ public class RegexUtil {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static boolean isNumbers(String str) {
|
|
public static boolean isNumbers(String str) {
|
|
- String regex = "[0-9]+|([0-9]+\\.)+[0-9]*|[0-9]*(\\.[0-9]+)+";
|
|
|
|
|
|
+ String regex = "[0-9]+|([0-9]+\\.)[0-9]*|[0-9]*(\\.[0-9]+)";
|
|
return str.matches(regex);
|
|
return str.matches(regex);
|
|
}
|
|
}
|
|
|
|
|