From: Yui NARUSE Date: 2012-01-30T09:25:08+09:00 Subject: [ruby-core:42255] [ruby-trunk - Bug #5831][Rejected] URI.extract not properly extracting URIs with trailing slash followed by single quote Issue #5831 has been updated by Yui NARUSE. Status changed from Open to Rejected Sorry for late reply. As deshi says, that's not a bug, it's a feature. ---------------------------------------- Bug #5831: URI.extract not properly extracting URIs with trailing slash followed by single quote https://bugs.ruby-lang.org/issues/5831 Author: Brian Cardarella Status: Rejected Priority: Normal Assignee: Category: lib Target version: 1.9.2 ruby -v: 1.9.2-p290 I have example failing test cases here: https://gist.github.com/1547904 Here is my use case. I am looking to extract URIs from emails. It has been recommended to use Nokogiri and that is just fine if the email is in HTML. But if the email is in plain-text Nokogiri doesn't work. IMO this is a bug with URI.extract's regexp. I have tested this against 1.8.7, 1.9.2, and 1.9.3 and it exists in all three. -- http://bugs.ruby-lang.org/