Python regular expression syntax error
Question: I am trying to write a regular expression that will match a `-` (dash),
followed by as many letters as it possibly can. What I have at the moment, is
the following: `exp = (-[a-z A-z]*)`.  
I am getting a `SyntaxError: invalid syntax` error though.


Answer: try placing your expression in a string

    
    
    import re
    exp = re.compile('(-[a-z A-z]*)')
    

cheers

