Use a negative look-ahead that asserts the absence of any of the three words somewhere in the input:
^(?!.*(trunk|tags|branches)).*$
I also slightly rearranged your regex to correct minor errors.
Use a negative look-ahead that asserts the absence of any of the three words somewhere in the input:
^(?!.*(trunk|tags|branches)).*$
I also slightly rearranged your regex to correct minor errors.