Optomized matches/regex usage