Ought to do the @ as well, I suppose. Not sure about the &?
Neither am I. We could start a long discussion here involving eg quotemeta. But I suggest that we go no further down this line, and just accept to follow Corion's excellent advice above :
...it is a much saner approach to only allow what is permitted instead of rejecting what you know is bad.
In reply to Re^4: Regex and negative file test
by Not_a_Number
in thread Regex and negative file test
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |