Re: trying to filter out various words from user entered text

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58728
interpreted = N
texte = Use [ConvertWords db=xx.db]Any Text[/ConvertWords] this is 100% scaleable :) On 02/07/2004, at 11:01 AM, eLists wrote: > WebCat 4.51 - but upgrading to 6.x soon > running on Linux > > Hello, > > I have a site where users can enter text messages. I need to filter > out various possible strings of data if they exist in the user > message. > > Typically these would be URLs. > > I will know the domain names that needs to be removed, but there will > often be extra data after the domain name that I will not know, but > need to also remove. This is why I didn't go the convertwords.db > route. > > What I have tried, but doesn't seem to work properly is: (test code) > > --- begin --- > > [showif [message]^bad] > > [ListWords Words=[message]&Delimiters= .] > [index] - [word]
> [showif [word]^bad] > [text]badword=[word] > [/showif] > [/ListWords] > > [text]msg_start=[Middle > StartAfter=-start-&EndBefore=[badword]][message][/Middle][/text] > [text]msg_end=[Middle > StartAfter=[badword]&EndBefore=-end-][message][/Middle][/text] > [/showif] > > --- end --- > > The biggest problem is the above doesn't scale well. I would love to > be able to have the 'bad words' in a db that can be checked instead of > having the badwords in the code. > > Any suggestions? > > Thanks > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: trying to filter out various words from user entered text ( Stuart Tremain 2004)
  2. trying to filter out various words from user entered text ( eLists 2004)
Use [ConvertWords db=xx.db]Any Text[/ConvertWords] this is 100% scaleable :) On 02/07/2004, at 11:01 AM, eLists wrote: > WebCat 4.51 - but upgrading to 6.x soon > running on Linux > > Hello, > > I have a site where users can enter text messages. I need to filter > out various possible strings of data if they exist in the user > message. > > Typically these would be URLs. > > I will know the domain names that needs to be removed, but there will > often be extra data after the domain name that I will not know, but > need to also remove. This is why I didn't go the convertwords.db > route. > > What I have tried, but doesn't seem to work properly is: (test code) > > --- begin --- > > [showif [message]^bad] > > [ListWords Words=[message]&Delimiters= .] > [index] - [word]
> [showif [word]^bad] > [text]badword=[word] > [/showif] > [/ListWords] > > [text]msg_start=[Middle > StartAfter=-start-&EndBefore=[badword]][message][/Middle][/text] > [text]msg_end=[Middle > StartAfter=[badword]&EndBefore=-end-][message][/Middle][/text] > [/showif] > > --- end --- > > The biggest problem is the above doesn't scale well. I would love to > be able to have the 'bad words' in a db that can be checked instead of > having the badwords in the code. > > Any suggestions? > > Thanks > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

all records returned. (1997) [include ...] behavior (1997) The IBC root beer has arrived! (1997) [listdatabases] feature request. (2003) WebCat2b15MacPlugin - showing [math] (1997) Setting up the server (1997) Add to Cart & List of Products (1997) group searching problem (2002) Smart caching problems with 2.1b3? (1997) DB Size - MAX (2004) Nested [tags] (2001) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) Shell traceroute (2001) Location of Browser Info.txt file (1997) Why are some admin pages not encrypted? (2000) WebCatalog Use Question (1997) Cannot open database (1999) ListFiles (1998) ImageMagick (2003) problem serving foreign languages text (1997)