Regex cutting off anything after space in the url
Heres the current regex :
const regex = /(https?://\S+)\s\n\s(Canonical|\d)/g;
it gives back: "http://www.stjosephnewwaverlytx.net/Religious"
want it to give me the full url: "http://www.stjosephnewwaverlytx.net/Religious" +
" Education/Teachers and Staff/Lessons/Misc/Sacraments.jpg
Tried for a couple of hours to get it working but with no luck. Any help would be appreciated. Thanks!
const regex = /(https?://\S+)\s\n\s(Canonical|\d)/g;
it gives back: "http://www.stjosephnewwaverlytx.net/Religious"
want it to give me the full url: "http://www.stjosephnewwaverlytx.net/Religious" +
" Education/Teachers and Staff/Lessons/Misc/Sacraments.jpg
Tried for a couple of hours to get it working but with no luck. Any help would be appreciated. Thanks!
