var pattern = /[0-9!"£$%^&*()_+-=]/;
This tries to avoid some scenarios, just in case:
Overflowing any buffers the original string might get passed to.
Slowness or oddities caused by denormal numbers like 1E-323
.
Passing Infinity when a finite number is expected (try 1E309
or -1E309
).