add regex pattern for ip