mIRC Homepage
Posted By: BlackAle $fline regex bug? - 30/08/03 01:26 AM
I think this is a bug, unless anyone can advise otherwise.

If I try and search for $chr(3) by using the regex method of $fline it fails to match, but if I do the same using the old wildcard method a match is found. For example...

/window -l @test
//aline @test $+($chr(3), 04, Hello World)

[email]...@test[/email] window created and a line added saying 'Hello World' in red.

//echo -a Wildcard: $fline(@test, $+(*, $chr(3), *), 1) Regex: $fline(@test, /\x3/, 1, 2)

..this returns 'Wildcard: 1 Regex:' ...I'd expect them both to return 1.

$fline(@test, /Hello/, 1, 2) also fails, but $fline(@test, /Hello/i, 1, 2) or $fline(@test, /ello/, 1, 2) matches.
Posted By: qwerty Re: $fline regex bug? - 30/08/03 01:57 AM
Yep, I can reproduce all of them. Also , /hello/ matches, even though /i isn't specified. In the meantime, $+(/,$chr(3),/) works and can be used instead of /\x03/ until the bugfix version.
© mIRC Discussion Forums