SyntaxFix
Write A Post
Hire A Developer
Questions
Try this code, hope it will help you
String regex = "(\\d+)(\\.)?(\\d+)?"; for integer and decimal like 232 232.12