##
(my $DataUsed) = $stgUsed =~ /"remaining-data">([+-]?(\d*\.)?\d+)(MB|GB) used/; # trying to get just the digits.
(my $unit) = $stgUsed =~ /(MB|GB)/; # match either MB or GB
if ( $unit eq "GB"){ $DataUsed *= 1000; }
####
DB<5> x $stgUsed
0 'class="remaining-data">315MB'