I have requirement to restrict a string using regex in angular. I used ^(?!.Test).$ but the issue is that it restrict all the string starting with word Test i.e if i type Test1 , testimony it fails. Validation shall only restrict Test word. It shall work as :
1) Test - not allowed
2) test- not allowed
3) Test123 - Allowed
4) Testimony - Allowed
How do we do it regex.