How to write "and" in Regex. Like we can write "or" using pipe | similarly is there a way to write "and"
I have
- REGEX1 :
^(?!([0-9])\1{2}[-. ]*\1{3}[-. ]*\1{4}$)
which validates anything except numbers like 111-111-1111 or 111.111.1111 and another - REGEX2:
^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$
which validates numbers like 784-223-4567
I want the digit string to be valid only if both REGEX1 && REGEX2 conditions are satisfied