convert very long char

These are old archives. They are kept for historic purposes only.
Post Reply
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

convert very long char

Post by Bronx AnarchY »

<RaP--KoLiK> KIZ KURULARIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII


<sahte_hayat> SEMİNAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY


I want convert it ;

<RaP--KoLiK> KIZ KURULARI

<sahte_hayat> SEMİNAY


??
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Use a badwords block

Have it look for this: "(.)\1{4,}" and replace with this: "\1"
Why the hell can't my signature be empty?
"Your message contains too few characters."
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

Post by Bronx AnarchY »

its a regex ? for spamfılter.conf ?
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

Post by Bronx AnarchY »

I add badwords ;

badword channel { word "(.)\1{4,}"; replace "\1"; };

<dsfsd> NNNNNNN

on channel :

<dsfsd> \1

wheres the problem

<dsfsd> olmuyoooooooooooooooooooooooooooooor

on channel :

<dsfsd> olmuy\1r
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Hmm. Try replacing with $1 instead of \1
Why the hell can't my signature be empty?
"Your message contains too few characters."
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

Hi

Post by Bronx AnarchY »

jason thnx for all help, but

its not work replace

badword channel { word "(.)\1{6,}"; replace "$1"; };

when use any charecter to replace string, its entır it string.

user : <sdsadas> TAhaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

channel : <sdsadas> TAh$1

I dotn find any thing
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

I looked through my code.

I made a seperate one for each character I didnt like repeated.

Unforutnately badwords doesnt have the regex subexpressions replacement feature I thought it did. Time for a feature request.

*Wanders over to bugs*
Why the hell can't my signature be empty?
"Your message contains too few characters."
Post Reply