How can I use regex to parse the numeric value (104) assigned to qtyAvail in the below javascript?
<script>
var buyID = "302";
var qtyAvail = "104";
var outBehavior = "Default";
if (qtyAvail == "0") {
if (outBehavior.indexOf("Disallow") != -1) {
do this
} else if (outBehavior.indexOf("Allow") != -1) {
do that
}
}
</script>