Replace URLs in a sentence with placeholders
Source:R/url_helpers.R
replace_urls_with_placeholders.Rd
Detects and replaces protocol-style links (e.g., http://
, https://
, ftp://
) in a given sentence
with unique placeholders like __URL1__
, __URL2__
, etc. This is useful for preparing text for
translation or further processing while preserving original URLs.