Anope IRC Services

Anope.org => Anope General => Topic started by: Gary on January 02, 2021, 08:08:25 PM

Title: module regex pcre issue
Post by: Gary on January 02, 2021, 08:08:25 PM
/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 ?
Title: Re: module regex pcre issue
Post by: Lord255 on January 02, 2021, 08:28:19 PM
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$) ..
Title: Re: module regex pcre issue
Post by: Gary on January 02, 2021, 08:30:19 PM
Thx Lord now is work
Title: Re: module regex pcre issue
Post by: Lord255 on January 02, 2021, 08:32:16 PM
and to sadie. :)
yw