The stupid question is the question not asked | |
PerlMonks |
URL pattern matching:by Anonymous Monk |
on Jan 29, 2013 at 08:46 UTC ( [id://1015829]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here below there are three urls,
https?://(www.)?(abc.com)[^/]*/(?!article).*/(?!video).*
https://www.abc.com/news/video - Works https://www.abc.com/news/video/ - Doesn't work https://www.abc.com/news/video/hhj - oesn't work. Even after adding .* after video url's doesn't match with the above regex, Please suggest the same
Back to
Seekers of Perl Wisdom
|
|