DRY up the code a bit, expose regex.test() as fm.test()