extract source information of lexer exceptions from the message string