Expand description
URI finder implementation based on RFC 3986.
This module provides a URI finder that can extract URIs from text, optionally
filtering by scheme (http, https, mailto, etc.).
§Example
use squeeze::{uri::URI, Finder};
let mut finder = URI::default();
finder.add_scheme("https"); // Only match https URLs
let text = "Visit https://example.com or http://other.com";
if let Some(range) = finder.find(text) {
assert_eq!(&text[range], "https://example.com");
}Structs§
- URI
- A finder that extracts URIs from text according to RFC 3986.