Help for this page

Select Code to Download


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