← Back to team overview

linuxdcpp-team team mailing list archive

[Question #177968]: How to write Regular expressions that work?

 

New question #177968 on ADCH++:
https://answers.launchpad.net/adchpp/+question/177968

I tried to use +bannickre and +banmsge in development code, using:

+banmsgre 30 <.*\n.*\n.*> some reason
+bannickre 1440 <.+(?<!(\[DS[1234]\]|\[AK[12]\]))> some reason

As in the above example, I want to ban people writing multi-newline messages and force a certain username format. In my opinion and according to ADCH++ documentation, those regular expressions should work, but they don't. How can i use regular expressions in this functions properly? I also tried with Lua patterns, to no effect. Please tell me how can I use those functions...

-- 
You received this question notification because you are a member of
Dcplusplus-team, which is an answer contact for ADCH++.