Issue with match array with special characters

Match array elements were not being highlighted if they included the
special regex characters (, ) and |.  I modified the str.replace on line 184 to escape these characters.  Please review and merge if you see fit.


Your repositories has been a great help in my project so I wanted to contribute where I could.  I'm new to GitHub and git in general so if I've done something incorrect please let me know.