From 7aac89af7c8b8a633cb0a0c870e81724b0ec5def Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期五, 03 二月 2023 10:54:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/java/com/hx/util/RegValidatorUtil.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/hx/util/RegValidatorUtil.java b/src/main/java/com/hx/util/RegValidatorUtil.java
index 4c89a09..d3d68a2 100644
--- a/src/main/java/com/hx/util/RegValidatorUtil.java
+++ b/src/main/java/com/hx/util/RegValidatorUtil.java
@@ -240,6 +240,20 @@
 	}
 
 	/**
+	 * 鍒ゆ柇瀛楃涓叉槸涓嶆槸double鍨�
+	 * @param str
+	 * @return
+	 */
+	public static boolean isNumeric(String str){
+		Pattern pattern = Pattern.compile("[0-9]+[.]{0,1}[0-9]*[dD]{0,1}");
+		Matcher isNum = pattern.matcher(str);
+		if( !isNum.matches() ){
+			return false;
+		}
+		return true;
+	}
+
+	/**
 	* @param regex
 	* 姝e垯琛ㄨ揪寮忓瓧绗︿覆
 	* @param str

--
Gitblit v1.8.0