Modify quicktip regex function