我正在使用该match
方法使用ruby,我希望将不包含某个字符串的URL与正则表达式匹配:ex:
http://website1.com/url_with_some_words.html
http://website2.com/url_with_some_other_words.html
http://website3.com/url_with_the_word_dog.html
Run Code Online (Sandbox Code Playgroud)
我想匹配不包含单词的网址dog
,因此第一个和第二个匹配