This question is continuation of this question. The problem is that regex "[-+]?\\d*\\.?\\d+([eE][-+]?\\d+)?"
doesn't correctly find doubles.
For instance, input sdf9.99e.23
contains no doubles, cause if we have [eE], after it MUST be a [+-] or just [0-9].
So I need some kind of "if" in the regex. In pseudo-code it'll be like this: if(char[i]==(e|E)) then if(char[i+1] == ('+'|'-')) else return null
.