Fixed intent script for regular expressions and added custom quote mash functioanlity