change ** to % so regexes compile