The ^ character doesn’t mean “not” except inside a character class ([]). If you want to not match anything, you could use a negative lookahead that matches anything: (?!.*).
The ^ character doesn’t mean “not” except inside a character class ([]). If you want to not match anything, you could use a negative lookahead that matches anything: (?!.*).