let str = 'text text example.com/?isExample=true more text'
if (str.match(/.com/i)) {
...
}
How can I get the whole example.com link based on just that one condition? I need only the link, not the text as well.
So the expected result would be example.com/?isExample=true