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: Working Example [message #2706 is a reply to message #2704] Sat, 18 May 2002 00:56 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 Fri, 17 May 2002 8:35 PM

prottoss wrote on Fri, 17 May 2002 11:52 AM

I think the code you are looking for is something like this:

From: (\s|^)([^\s]*?)spoon([^\s]*?)(\s|$)
To: \1sp**n\4


Slight bug in the regex, works fine now.


Well, when I try to enter something like that with either Perl regex or PHP regex, all backwards slashes end up getting doubled:

Fron: (\\s|^)([^\\s]*?)spoon([^\\s]*?)(\\s|$)
To: \\1sp**n\\4


Fix backported Smile

Affected file admreplace.php


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: Sat Nov 23 15:35:10 GMT 2024

Total time taken to generate the page: 0.04131 seconds