【发布时间】:2012-07-24 03:11:52
【问题描述】:
我正在使用 match 方法使用 ruby,我想将不包含特定字符串的 URL 与正则表达式匹配:
例如:
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
我想匹配不包含单词dog的网址,所以应该匹配第一个和第二个
【问题讨论】:
-
这个问题最好在发帖here 上搜索类似问题。