What's a good regex to match a decimal number to check that it does not contain exponential values?
Thanks for any help.
Can I just say something like match anything except if it contains "e-", "e+", "E-" or "E+"?
The thing is its a cost field, and can contain currency symbols, parenthesis and other characters like that
Without detailed specs it's not an easy task using regular expressions. In my opinion, regex is inappropriate when you know so little about the format of your input.
Update after OP's edit:
Can I just say something like match anything except if it contains "e-", "e+", "E-" or "E+"?
That would be e.g. ^(?!.*[eE][+-]).*$
(using a negative lookahead), but probably matching more than you like…