Added backslash to list of allowed characters. Implemented checkANDORNOT, with thanks to Michel Valade (m_valade at hotmail.com) for suggested change to the regex.