I am trying to find a regex that will do the following
Return true if a string ends with jaxws.managed
but does not contain delegate
.
eg
abc/delegate/xyz/jaxws/managed
should return false, while
abc/def/xyz/jaxws/managed
should return true
I tried using the regex
([^(delegate)])+([a-z]*[\\/]jaxws[\\/]managed[\\/])+
but it fails . Any help is much appreciated