rohit rohit - 1 year ago 57
HTML Question

Regex to allow only string but not combination of word “test”


doesn't allow the word 'test' as an input, it also don't allow the numbers. How can i modify this regular expression as it will exclude all combinations of 'test'? means Test, test, TEst, tEst etc. etc. also i dont want to allow any special characters

Answer Source

You just need to add case-insensitive modifier.



If you don't want the word test to present anywhere in the input string then you have to use the below regex.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download