Java regular expressions match numeric values

needs to match all values, including integers, decimals, and scientific counts. For example, + 100 "," 5e2 ","-123", "3.1416" and "- 1E-16" all represent numeric values. I don"t know how to write regular expressions.

Mar.29,2021

try this [+\ -]? (?: 0 | [1-9]\ d *) (?:\.\ d *)? (?: [eE] [+\ -]?\ d +)? , you can see the effect

at here .
Menu