I want to match the following string using regular expressions in Java:
suspicious url test' xts#dfd
I don't want the regex to match if there is a quote, ('
)
This is what I'm using.
suspicious url\s.*(?!')
When i use this I match the whole string.