I have to extract a link out of a String !
Given Text: Text Text Text https://link.com Text Text Text
Can you help me, to only export the HTTPS-Link out of the String
THX
-
Hi Valentin,
Here's the regex string:
(http|https):\/\/.*[\S]\.[\S]*
I tested this with:
test test test https://www.google.com/test/test test test test
and
test test test http://www.google.com/test/test test test test
I developed this regex using the Regex101 site. It's really useful for debugging regexes!
Please sign in to leave a comment.
Comments
2 comments