Fixed regex issue for iOS