Page 1 of 1

convert very long char

Posted: Mon May 08, 2006 5:53 pm
by Bronx AnarchY
<RaP--KoLiK> KIZ KURULARIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII


<sahte_hayat> SEMİNAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY


I want convert it ;

<RaP--KoLiK> KIZ KURULARI

<sahte_hayat> SEMİNAY


??

Posted: Mon May 08, 2006 8:40 pm
by Jason
Use a badwords block

Have it look for this: "(.)\1{4,}" and replace with this: "\1"

Posted: Tue May 09, 2006 9:36 am
by Bronx AnarchY
its a regex ? for spamfılter.conf ?

Posted: Tue May 09, 2006 4:42 pm
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

Posted: Tue May 09, 2006 10:32 pm
by Jason
Hmm. Try replacing with $1 instead of \1

Hi

Posted: Wed May 10, 2006 2:36 pm
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

Posted: Thu May 11, 2006 2:31 am
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*