Update regex

updated to use .test() for regex testing.