Woocommerce how to use jquery to get a value inside “cart-subtotal”

Solution:

It is not efficient but working for your case.

var re = /(\d+\.\d+)/.exec($(".woocommerce-Price-amount").html());

then you can reach it by taking the first element which is re[0]