Raised This Month: $ Target: $400
 0% 

Replace all double, and many letters.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Emp0wer
Member
Join Date: Jul 2010
Location: Ukraine mother
Old 07-27-2010 , 05:24   Replace all double, and many letters.
Reply With Quote #1

I need case insensitive function, that would
make f.e.:
string wooooOooorrrrLlD -> world
I wanna to do that in anti swear system. Because many ppl. Just write not fuck, fuuck and so they are not get busted.

A have just a part of code and I can't find out how to do next:
PHP Code:
replace_same(const str,len)
{
    for(new 
i=1;i<=len;i++)
    {
        if(
equali(str[i],str[i-1]))
        {
            
//how to do next?
        
}
    }


Last edited by Emp0wer; 07-27-2010 at 06:45.
Emp0wer is offline
Send a message via ICQ to Emp0wer Send a message via Skype™ to Emp0wer
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode