How do I write a regular expression that includes all keyboard characters except \'~\' and \',\'?
I had to do this for regex to work:
"[^~,][^~,]*"
because [^~,] negates ~ and ,
[^~,]
~
,
[^~,]* means in zero or many copies of ~ and , (that is useless for our case)
[^~,]*
and by putting [^~,][^~,]* gets you to negate one or more copy of ~ or ,
[^~,][^~,]*