I have a regex to get the spotify link from text & replace them with the iframe to render the iframe on UI.
The issue now if any anchor
<a href="https://open.spotify.com/episode/0xmdIsJ28Pwix7MOKcK3Zv?si=50957b8039154544">Link</a>
Like this contains the link it's also picking that up but I just to to pick the link if it's not in the attribute
Here's my current regex
/(https:\/\/open.spotify.com\/track\/|spotify:user:spotify:playlist:)([a-zA-Z0-9]+)(.*)/gi