in reply to Re^5: HTML::Parser / Regex
in thread HTML::Parser / Regex

Hi shmem, thanks for the steps. I am going to google it for a little bit as I am not too familiar with linux environment yet.

At the mean time, is there any other method that I can achieve my goal? like storing the found or empty value into variables ?

Replies are listed 'Best First'.
Re^7: HTML::Parser / Regex
by AnomalousMonk (Archbishop) on May 28, 2017 at 06:36 UTC
    ... any other method ... storing the found or empty value into variables ?

    Did you take a look at the code here? (Update: Also here.) And if you need a quick-and-dirty replacement for  $RE{num}{real} from Regexp::Common if you have difficulty installing it, try
        my $rx_amount = qr{ (?> [-+]? (?: \d+ (?: [.] \d*)? | [.] \d+)) }xms;
    It's semi-tested and should be enough to move forward with.


    Give a man a fish:  <%-{-{-{-<