'Regex code needs to accept characters that has not been ignored by Regex code [closed]

I have a regular expression code which in my opinion should accept any characters not within the regex code. This is the code syntax

^[^0-9~!@#$%^*()_+={}\|:;,<>\/?]*$"

But when I use https://regex101.com I am unable to match any alphabet. How to address this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source