mIRC Home    About    Download    Register    News    Help

Print Thread
#195251 20/02/08 04:36 PM
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
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

Miguel_A #195256 20/02/08 05:20 PM
Joined: May 2007
Posts: 89
T
Babel fish
Offline
Babel fish
T
Joined: May 2007
Posts: 89
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


tropnul
TropNul #195257 20/02/08 05:29 PM
Joined: Aug 2003
Posts: 144
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Many thanks for the help.

It works fine


Link Copied to Clipboard