Let's say I had some HTML that looks like the following:
<input type="text" data-text="mytext{someothertext}">
How would I use a Regular Expression to 'pull out' what's inside the curly braces inside the 'data-text' attribute. I know this is probably looking rather bizarre and also weird, but I am trying something out in a new project. And the curly braces here are not to represent JSON or anything like it.
What I want to be able to do is console.log() what's inside of the curlies!
Thank you! :)