Question

11
Replies
480
Views
HenryA80 Member since 2015 52 posts
Veteran Careers First
Posted: 1 year ago
Last activity: 1 year 9 months ago
Closed
Solved

Function

I have the below function working but it does not allow negative numbers.

How can we make this adjustment....

Function Code:

java.util.regex.Pattern p = java.util.regex.Pattern.compile("^[0-9]\d*(\.\d+)?$");
java.util.regex.Matcher m = p.matcher(input);
return m.matches();

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn