Right I have no clue where to start when it comes to regex but I'm assuming this is the right way to go with this... I'm trying to split html with javascript I'm retriving the html element like so:
$('.HomeFeaturedPrice').each(function(index, el) {
var grabPrice = $(this).html();
var convertPrice = Number(grabPrice);
console.log(convertPrice);
});
convertPrice could output to different options now:
option one is: $50.00
option two is: <span id="salesprice">$50.90</span>
How do i write a regex to pick up on the price only....
stripping out all the html and the dollar sign...
Chris