Re: WebDNA Grep help wanted

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56182
interpreted = N
texte = are you sure? using the custom convert means you never have to alter the code again to make changes to the way the forum filters words. you can just create a little admin system for the list of words to change to and from and the updates will be seamless. also good for things like getting rid of foul language, text speech etc. ----- Original Message ----- From: "Palle Bo Nielsen" To: "WebDNA Talk" Sent: Wednesday, February 18, 2004 10:00 AM Subject: Re: WebDNA Grep help wanted > Hi Andrew, > > It might be a good alternative solution but I would really like to > solve the Grep version. It will increase my knowledge to about Grep ;) > > Palle > > > On 17/2-2004, at 21.46, Andrew Simpson wrote: > > > would a custom convert characters database work better and be more > > suitable > > for this maybe? > > > > ----- Original Message ----- > > From: "Palle Bo Nielsen" > > To: "WebDNA Talk" > > Sent: Wednesday, February 18, 2004 9:44 AM > > Subject: WebDNA Grep help wanted > > > > > >> Hi all, > >> > >> I have a messageboard developed in WebDNA. The messageboard does not > >> accept HTML syntax due to security. In stead I have made a parsingt > >> system which translate forum specific tags to HTML behind the scenes. > >> > >> [/b]If I wanted to post a message in the forum with bold words it > >> would > >> look like this[/b] > >> > >> [/i]If I wanted to post a message in the forum with italic words it > >> would look like this[/i] > >> > >> The grep lines handling this process is pasted below, but it can't > >> handle a line like this. And here I need some help... > >> > >> [b] this is a line of bold words including one word in [i]italic[/i], > >> but it won't work - only the italic-tags are parsed correctly[/b] > >> > >> Any help is appreciated... > >> > >> ----- code ---- > >> [!] -- REPLACE [b] WITH (ignore case) text [/!] > >> [text]the_text=[grep > >> search=\[[bB]\]([^[unurl]%5B[/unurl]]*)\[/[bB]\]&replace=\1 >> b>][text]the_text[/text][/grep][/text] > >> > >> [!] -- REPLACE [b] WITH (ignore case) text [/!] > >> [text]the_text=[grep > >> search=\[[iI]\]([^[unurl]%5B[/unurl]]*)\[/[iI]\]&replace=\1 >> i>][text]the_text[/text][/grep][/text] > >> ----- code ---- > >> > >> There are lots of other Greps parsing syntax but I only include the > >> above for this example. > >> > >> Palle > >> > >> > >> ------------------------------------------------------------- > >> 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/ > >> > > > > > > ------------------------------------------------------------- > > 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/ > > > > > > -- > Venlig hilsen > Palle B. Nielsen (PowerPalle) > http://www.macnyt.dk/ > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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: WebDNA Grep help wanted ( Kenneth Grome 2004)
  2. Re: WebDNA Grep help wanted ( Gary Krockover 2004)
  3. Re: WebDNA Grep help wanted ( Kenneth Grome 2004)
  4. Re: WebDNA Grep help wanted ( William DeVaul 2004)
  5. Re: WebDNA Grep help wanted ( Kenneth Grome 2004)
  6. Re: WebDNA Grep help wanted ( Gary Krockover 2004)
  7. Re: WebDNA Grep help wanted ( devaulw@onebox.com 2004)
  8. Re: WebDNA Grep help wanted ( devaulw@onebox.com 2004)
  9. Re: WebDNA Grep help wanted ( "Andrew Simpson" 2004)
  10. Re: WebDNA Grep help wanted ( Palle Bo Nielsen 2004)
  11. Re: WebDNA Grep help wanted ( "Andrew Simpson" 2004)
  12. WebDNA Grep help wanted ( Palle Bo Nielsen 2004)
are you sure? using the custom convert means you never have to alter the code again to make changes to the way the forum filters words. you can just create a little admin system for the list of words to change to and from and the updates will be seamless. also good for things like getting rid of foul language, text speech etc. ----- Original Message ----- From: "Palle Bo Nielsen" To: "WebDNA Talk" Sent: Wednesday, February 18, 2004 10:00 AM Subject: Re: WebDNA Grep help wanted > Hi Andrew, > > It might be a good alternative solution but I would really like to > solve the Grep version. It will increase my knowledge to about Grep ;) > > Palle > > > On 17/2-2004, at 21.46, Andrew Simpson wrote: > > > would a custom convert characters database work better and be more > > suitable > > for this maybe? > > > > ----- Original Message ----- > > From: "Palle Bo Nielsen" > > To: "WebDNA Talk" > > Sent: Wednesday, February 18, 2004 9:44 AM > > Subject: WebDNA Grep help wanted > > > > > >> Hi all, > >> > >> I have a messageboard developed in WebDNA. The messageboard does not > >> accept HTML syntax due to security. In stead I have made a parsingt > >> system which translate forum specific tags to HTML behind the scenes. > >> > >> [/b]If I wanted to post a message in the forum with bold words it > >> would > >> look like this[/b] > >> > >> [/i]If I wanted to post a message in the forum with italic words it > >> would look like this[/i] > >> > >> The grep lines handling this process is pasted below, but it can't > >> handle a line like this. And here I need some help... > >> > >> [b] this is a line of bold words including one word in [i]italic[/i], > >> but it won't work - only the italic-tags are parsed correctly[/b] > >> > >> Any help is appreciated... > >> > >> ----- code ---- > >> [!] -- REPLACE [b] WITH (ignore case) text [/!] > >> [text]the_text=[grep > >> search=\[[bB]\]([^[unurl]%5B[/unurl]]*)\[/[bB]\]&replace=\1 >> b>][text]the_text[/text][/grep][/text] > >> > >> [!] -- REPLACE [b] WITH (ignore case) text [/!] > >> [text]the_text=[grep > >> search=\[[iI]\]([^[unurl]%5B[/unurl]]*)\[/[iI]\]&replace=\1 >> i>][text]the_text[/text][/grep][/text] > >> ----- code ---- > >> > >> There are lots of other Greps parsing syntax but I only include the > >> above for this example. > >> > >> Palle > >> > >> > >> ------------------------------------------------------------- > >> 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/ > >> > > > > > > ------------------------------------------------------------- > > 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/ > > > > > > -- > Venlig hilsen > Palle B. Nielsen (PowerPalle) > http://www.macnyt.dk/ > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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/ "Andrew Simpson"

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:

About WebCatalog and iTools 7 (2003) How To question on setting up downloads (1997) [WebDNA] List Files question (2009) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) [shownext] and sort (1998) Warning: Mac OS X 10.2.4 Update Overwrites Apache'shttpd.conf (2003) Recording size of uploaded file? (2001) suffix mapping for NT? (1997) [WebDNA] directory protection questions (2008) FYI: virus alert (1996) Convert characters (2002) WebCat2 - Getting to the browser's username/password data (1997) Plugin or CGI or both (1997) [format] (1998) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Crash solved (1998) WebCat2 - Getting to the browser's username/password data (1997) Uniqueness of Cart number (2000) [OT] Display Glitch (2004) Editor Recommendation for NT Users (1998)