Anope.org > Anope General

module regex pcre issue

(1/1)

Gary:
/os sqline add +0 /(?!Malena\b ^[a-z].+$|malena$)[^a-z\d\n]*[Mm]+[^a-z\d\n]*[a4@]+[^a-z\d\n]*[Il|]+[^a-z\d\n]*[e3]+[^a-z\d\n]*n+[^a-z\d\n]*[a4@]+[^a-z\d\n]*/ Test

issue

Permanent Q-Line added for /(?!Malena\b on Sat Jan 2 20:06:28 2021 GMT (from *********: [army] ^[a-z].+$|malena$)[^a-z\d\n]*[Mm]+[^a-z\d\n]*[a4@]+[^a-z\d\n]*[Il|]+[^a-z\d\n]*[e3]+[^a-z\d\n]*n+[^a-z\d\n]*[a4@]+[^a-z\d\n]*/ Test (ID: 7ZL8OJN9W4))

[22:06:32] -OperServ- Current SQLINE list:
[22:06:32] -OperServ- Number  Mask          Reason
[22:06:32] -OperServ- 1       /(?!Malena\b  [army] ^[a-z].+$|malena$)[^a-z\d\n]*[Mm]+[^a-z\d\n]*[a4@]+[^a-z\d\n]*[Il|]+[^a-z\d\n]*[e3]+[^a-z\d\n]*n+[^a-z\d\n]*[a4@]+[^a-z\d\n]*/ Test



is add time date who added inside the regex and the regex is not function as i want

someone have any idea how to fix this issue ?

Lord255:
just to have this documented (we solved this via irc):

solution:
/os sqline add +0 /(?!Malena\b\s^[a-z].+$|malena$)[^a-z\d\n]*[Mm]+[^a-z\d\n]*[a4@]+[^a-z\d\n]*[Il|]+[^a-z\d\n]*[e3]+[^a-z\d\n]*n+[^a-z\d\n]*[a4@]+[^a-z\d\n]*/ Test

instead of space, you have to use \s

/(?!Malena\b ^[a-z].+$|malena$) ..
   vs.
/(?!Malena\b\s^[a-z].+$|malena$) ..

Gary:
Thx Lord now is work

Lord255:
and to sadie. :)
yw

Navigation

[0] Message Index

Go to full version