Does anyone have suggestions for detecting URLs in a set of strings?
arrayOfStrings.forEach(function(string){
// detect URLs in strings and do something sw
let str = 'https://example.com is a great site'
str.replace(/(https?:\/\/[^\s]+)/g,"$1")
Short Code Big Work!...
Result:-
https://example.com