I tested it but not sure if I covered everything?
That depends entirely upon what you subsequently do with the test.
Unless you tell us, or better, show us, exactly what you use the input text for, there is no way we can advise you whether you have done enough to sanitise the input.
In reply to Re: a regex
by BrowserUk
in thread a regex
by toniax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |