I want to built a calculator which accepts numbers like 1E100 or 1.34E-200. In order to check if the number entered is acceptable i decided to test the condition with my regex:
^-?\\d+\\.?\\d*\\E?\\-?\\d*$
however i get an illegal escape and i dont know why? does reges not accept my E?