references #191 changing up how regex is used given limitations of javascript regexes