mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 77
B
Babel fish
OP Offline
Babel fish
B
Joined: Dec 2002
Posts: 77
Nice to see the case problems with $fline and regex are resolved, though $fline is still not handing regex's correctly, as can be shown in the example below.

Code:
//window @DA.Text
//aline @DA.Test $chr(3) $+ 04hello
//echo Result: $fline(@DA.Test, /\x3/, 2)


I'd expect the above to return a result of 1, but it returns null which is wrong.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yeah, at first I thought \x* wasn't working, but it is except for \x<burko> codes.

Works OK with // though

Joined: Dec 2002
Posts: 5,428
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,428
This is purposeful behaviour, $fline() strips out control codes before performing a text match to make it easier to match against plain text, the same as with /findtext and Control+F, which is usually more useful.


Link Copied to Clipboard