mIRC Home    About    Download    Register    News    Help

Print Thread
#267624 23/08/20 03:18 AM
Joined: Jan 2004
Posts: 2,127
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
In 7.63. When using the .regex prop with $bfind, in the $2 parm it treats everything except $null the same as if '1' were used, even using text strings. In this example, I can't get it to search beginning anywhere past position 1 in order to find the 274 unless i use the /g modifier then search across all $reml(foo,N)'s for the matching text.

Code
//bset -t &v 1 2z45678274 | echo -a $bfind(&v,2,(\x32.\x34),foo).regex -> regexmatch $regml(foo,1) pos $regml(foo,1).pos vs $bfind(&v,1,$asc(2)) vs $bfind(&v,2,$asc(2))


even when changing N to '2' or 'deadbeef', result is always: 1 -> regexmatch 2z4 pos 1 vs 1 vs 8

Only when the $2 parm is null does $bfind return $null and not clear the $regml(foo,N)'s.

Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your bug report. This issue has been fixed for the next version.


Link Copied to Clipboard