Question

11
Replies
685
Views
Close popover
Henry Allen (HenryA80)
Veteran Careers First

Veteran Careers First
US
HenryA80 Member since 2015 57 posts
Veteran Careers First
Posted: November 20, 2018
Last activity: November 21, 2018
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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.