I want to do validation on element where it accepts either phone number or email address. I am using below pattern but its throwing schema validation issue.
[_\-a-zA-Z0-9\.\+][a-z|A-Z|0-9|@?](\.?[\-a-zA-Z0-9]*[a-zA-Z0-9])*
Expected result is this element accepts Ex: either 1234567890 or abc@gmail.com