I'm using the Python module re to write regular expressions for lexical analysis. I've been looking for a comprehensive list of which special characters must be escaped in order to be recognized by the regex to no avail. Can someone please point me to an exhaustive list?
The line in the current regex I'm writing that's giving me trouble is:
[\|\^&\+-%\*\/=!>]
I'd like it to recognize the characters: |^&+-%*/=!>
Have I not escaped something I should have?