change ** to % in regexes so it runs
change for better quote escaping
Merge pull request #4 from labster/master

change ** to % so regexes compile