I have a problem with regex - I have 4 examples of urls:
http://auto.com/index.php/car-news/12158-classicauto-cup-2016-photo
http://auto.com/index.php/car-news/11654-battle-royale-2014
http://auto.com/index.php/tv-special-news/10480-new-film-4
http://auto.com/index.php/first/12234-new-volvo-xc60
I would like to exclude urls with 'tv-special-news' inside or 'photo' at the end.
I've tried:
http://(www.)?auto.com/index.php/(?!(tv-special-news)).*/[a-zA-Z0-9\-]{1,}-(?!photo)
but it does not work exactly as I want
'tv-special-news' in urland.endswith