Some possible sting like:
https://www.google.com
End: https://g.co
Inside https://b.co and https://c.co
How to match the URL anywhere in a string? The URL may at the end of a string or end of space inside a string.
Currently I'm using the Regex like:
/(https:\/\/.*?)[$|\s]/gi
But it seems could not match the URL at the end of a string that the '$' does not work here.