So I’m trying to write a regex and get it to match the string ONLY if the string doesn’t start with the string ‘username’
I tried something like ^([^username])… but that matches strings where the string doesn’t start with any of those letters.
Any help would be appreciated!
using a negative lookahead.
The other option, depending on what your doing, would be to simply invert your logic. For instance, if you were doing
then just do