Quote dynamic regex contents to be safe. Thanks to Daniel Hahler.