This is weird. Why are you putting the regex together as string, rather than as .. regex.?