added regex in obj-c