String patterns excluding

So i basically want to exclude a special character from a string pattern

This is my current pattern
[^#](%f[%w]%d%w*%f[%W])

BUT [^#] this pattern matches something that is not “#” but i just want to blacklist “#” and never see it again

Try using https://regexr.com/ to both learn and test out regex syntax (the string pattern that both C and Lua uses)