how would i match non-valid mirc version replies?

These are old archives. They are kept for historic purposes only.
Post Reply
Winbots
Posts: 65
Joined: Wed Apr 21, 2004 12:26 am
Location: irc://irc.winbots.org/Winbots
Contact:

how would i match non-valid mirc version replies?

Post by Winbots » Tue Dec 28, 2004 8:02 pm

I'm not good with regular expressions, so could someone help me?
How would I match anything that looks like a mirc version reply, but doesn't exactly match one of the replies given by mIRC...

for example it would match 'mIRC' or 'mIRC 6.16' but not 'mIRC v6.16 Khaled Mardam-Bey'...

codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr » Tue Dec 28, 2004 8:40 pm

Negative matches are, unfortunately, extremely difficult (the regex library we use does not yet support 'negative lookahead assertions.') What this means is, it would probably take me several hours to come up with the regex that you will need. Therefore, it is probably much easier to add the list of "invalid" results manually.
-- codemastr

Post Reply