Here is my regex so far :
^((([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 (([a-zA-Z0-9_\/-]+)[ ])+((\bPHONE_NUMBER\b)|(\b(IP|EMAIL)_ADDRESS\b))
after the first one.
/tests/phone PHONE_NUMBER ; /tests/IP IP_ADDRESS
should match.
/tests/phone PHONE_NUMBER /tests/IP IP_ADDRESS
should not match.
How can I achieve that ?