I have some text I fetch inside here but only want the currency... How can I get rid of the other values?
I tried this, but didn't have any luck.
var symbol = $("div.price > h5 > div.num").text().replace(/[\d.]*/, "");
Here's the example html, the selector I'm using works fine, just not the replace.
<div class="price">
<h5 class="biguns">
<div class="num">
€12.28
</div>
Lowest Price Per Night
</h5>
</div>