in reply to Using a Regex to parse into keys

Well, if the font tag always immediately follows the tilde, you could do this:
$foo{$1} = $2 if (/(\d+)~<font\s+color="(#[[:xdigit:]]+)">/);

kelan


Yak it up with Fullscreen ChatterBox

Replies are listed 'Best First'.
Re: Re: Using a Regex to parse into keys
by Kage (Scribe) on Oct 07, 2002 at 02:02 UTC
    The only problem with that, is how do I get it to do that for each occurance of the string.. Each string is held in one value of @eachcolor, so what are some possible methods, I would suppose in using a ForEach()?
    Whoo