java正则匹配
class Solution { public boolean isNumber(String s) { return s.matches("[+-]?(([0-9]+)|([0-9]+\\.[0-9]*)|([0-9]*\\.[0-9]+))([eE][+-]?[0-9]+)?"); } }