I'm new to regex. I'm using regex to match urls, some of the result contains =
. I want only those url match my pattern but not contains =
.
My pattern is \S+google.com\/\S+-\S+
For example:
MATCH:
www.google.com/aa-bb
NOT MATCH:
google.com/
NOT MATCH:
www.google.com/aa-bb=cc
My current pattern matches 1 and 3, but I want 1 ONLY
With this answer, Regular expression to match a line that doesn't contain a word?, I have tried (?=((?!=).)*)(?=\S+google.com\/\S+-\S+)
, trying to intersect the result of both match. But it seems regex does not work this way.
Python Regex answers only, please. Thanks!