Here is my regex:
^((([a-zA-Z0-9_\/-]+)[ ])+((\bPHONE_NUMBER\b)|(\b(IP|EMAIL)_ADDRESS\b))[ ]*[;]*[ ]*)+$
I would like to make at least one ; mandatory if I found another one (([a-zA-Z0-9_\/-]+)[ ])+((\bPHONE_NUMBER\b)|(\b(IP|EMAIL)_ADDRESS\b)) after the first .
/tests/phone PHONE_NUMBER ; /tests/IP IP_ADDRESS /tests/phone PHONE_NUMBER ; /tests/IP IP_ADDRESS should match.
/tests/phone PHONE_NUMBER /tests/IP IP_ADDRESS must not match.
How can i achieve this?
source share