I'm using this regex
/(?<=\s|^)(https:\/\/open.spotify.com\/episode\/|spotify:user:spotify:playlist:)([a-zA-Z0-9]+)(.*?)/g
Which picks the urls by looking behind if there any white space there but the look behind regex is failing on safari.
is there any alternative for the look behind regex?