Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: module regex pcre issue  (Read 6363 times)

0 Members and 1 Guest are viewing this topic.

Gary

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 5
module regex pcre issue
« 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 ?
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: module regex pcre issue
« Reply #1 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$) ..
Logged

Gary

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: module regex pcre issue
« Reply #2 on: January 02, 2021, 08:30:19 PM »

Thx Lord now is work
Logged

Lord255

  • Anope User
  • Offline Offline
  • Posts: 136
Re: module regex pcre issue
« Reply #3 on: January 02, 2021, 08:32:16 PM »

and to sadie. :)
yw
Logged
Pages: [1]   Go Up