- or download this
<span class="remaining-data">54MB used</span>
<span class="expires-data-right-align">1.44GB remaining</span>
- or download this
(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; }
- or download this
DB<5> x $stgUsed
0 'class="remaining-data">315MB'