rohit rohit - 3 months ago 12
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


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.