markdown_harvest/
http_regex.rs1use once_cell::sync::Lazy;
2use regex::Regex;
3
4pub static URL_REGEX: Lazy<Regex> = Lazy::new(|| {
5 Regex::new(
6 r"https?://[a-zA-Z0-9._/%+()-]+(?:/[a-zA-Z0-9._/%+()-]*)*(?:\?[a-zA-Z0-9._/%+()=&-]*)?",
7 )
8 .unwrap()
9});