const urlsIn Target Style export const urlsIn = (string) => [...(string.match(regex) || [])] Finds URLs in a string with a shorter, more natural name. Target style API. Preferred for new code. Parametersstringstring Returnsstring[]
const findURLsInString Legacy Style export const findURLsInString = (string) => urlsIn(string) Finds URLs in a string. Legacy API. Kept for older code and not the preferred choice for new code. Parametersstringstring Returnsstring[] Exampleconst links = urlsIn('Open https://example.com and tg://resolve?domain=test')