Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?:(?:ht|f)tps?:)?\/\/[\S"]+?(?=[\\\s"])
/
g
Input 1
New
<!DOCTYPE html> <html lang="en" class="desktop-view not-mobile-device text-size-smaller"> <head> <meta charset="utf-8"> <title>Remove links from the text - How To - Make Community</title> <meta name="description" content="Hello! I have a msgTxt, that comes from a previous module, and I want to send this msgTxt to GPT assistant BUT i need to get rid of all the links in the message firs. I want to make it by replacing links with text “URL” &hellip;"> <meta name="discourse_theme_id" content="72"> <meta name="discourse_current_homepage" content="new"> <meta name="generator" content="Discourse 3.5.0.beta2-dev - https://github.com/discourse/discourse version f3f2ae1ae7f0117375f3130c569c255c545a6465"> <link rel="icon" type="image/png" href="https://europe1.discourse-cdn.com/flex013/uploads/make/optimized/1X/491d7abe4a5782d0c00ef5416223123f9f329cc5_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://europe1.discourse-cdn.com/flex013/upload
Extraction
<!DOCTYPE html> <html lang="en" class="desktop-view not-mobile-device text-size-smaller"> <head> <meta charset="utf-8"> <title>Remove links from the text - How To - Make Community</title> <meta name="description" content="Hello! I have a msgTxt, that comes from a previous module, and I want to send this msgTxt to GPT assistant BUT i need to get rid of all the links in the message firs. I want to make it by replacing links with text “URL” &hellip;"> <meta name="discourse_theme_id" content="72"> <meta name="discourse_current_homepage" content="new"> <meta name="generator" content="Discourse 3.5.0.beta2-dev - https://github.com/discourse/discourse version f3f2ae1ae7f0117375f3130c569c255c545a6465"> <link rel="icon" type="image/png" href="https://europe1.discourse-cdn.com/flex013/uploads/make/optimized/1X/491d7abe4a5782d0c00ef5416223123f9f329cc5_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://europe1.discourse-cdn.com/flex013/upload