mIRC Homepage
Posted By: Miguel_A regex help... - 20/02/08 04:36 PM
Hi ppl
is ther any regex or something that can make the same thing has this

var %x <td><font color=#006633>$1,605,108</font></td>
echo -s $iif( *<t*</*> iswm %x, Yes, No)

Or that can retrive the how many times the result is true

thanks
Posted By: TropNul Re: regex help... - 20/02/08 05:20 PM
Hello

Something like this may function.

var %x <td><font color=#006633> $+ $1 $+ ,605,108</font></td>
$iif($regex(%x,m@.*?<t.*?<\/[^>]+>@i),Yes,No)

And to retrieve 'how many times' the result is true, use the g option of regular expressions like in the following pattern: $regex(%x,m@.*?<t.*?<\/[^>]+>@ig) and the $regex will return that number of times.

Regards
Posted By: Miguel_A Re: regex help... - 20/02/08 05:29 PM
Many thanks for the help.

It works fine
© mIRC Discussion Forums