Test -match function with regular expression