FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Censorship & Replacement System?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Censorship & Replacement System? [message #2678 is a reply to message #2676] Thu, 16 May 2002 12:19 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
DocObvious wrote on Thu, 16 May 2002 8:01 AM

Given that I have a sketchy understanding of regular expressions at best, do I have to format the text to replace as a regular expression or does the system take care of that portion of things? And what exactly are the differences between the three types of replacement used in the system?


essentially you get to choose between 3 php functions that can do replacments inside text.

str_replace, which will simply replace STRING_A with STRING B
ereg_replace, simple php regular expression
preg_replace, perl regular expression.

By using regular expression you can use match masks such as "\stext.*\s", which would match any word that begins with text.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Theme manager
Next Topic: Exploiting the current email filter
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 01:17:32 GMT 2024

Total time taken to generate the page: 0.06817 seconds