Re: Grep question [parsing variables] problem

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47286
interpreted = N
texte = Hi John,Well it should have stated...this is a test [b]with bold [i]and bold italic[/i] words[/b]My bad when I wrote the mail to the list... but it still don't work...PowerPalle On torsdag, jan 30, 2003, at 21:40 Europe/Copenhagen, John Peacock wrote:> Palle Bo Nielsen wrote: >> this is a test [b]with bold [i]and bold italic[/i] words You are missing a [/b] tag, so the grep will not work... > Trying to create a parsing mechanism, but can't get it to work the right way.I am posting a form like this examplethis is a test [b]with bold [i]and bold italic[/i] wordsThe text above is put into the variable set_main_txt which should be parsed through this grep parsing engine in the order below, which means that it first checks for [b] and [/b] and replaces them with and and then do the same with [i]...[!] -- REPLACE [b] WITH (ignore case) text [/!] [text]set_main_txt=[grep search=\[[bB]\]([^[unurl]%5B[/unurl]]*)\[/[bB]\]&replace=\1][text]set_main_txt[/text][/grep][/text][!] -- REPLACE [i] WITH (ignore case) text [/!] [text]set_main_txt=[grep search=\[[iI]\]([^[unurl]%5B[/unurl]]*)\[/[iI]\]&replace=\1][text]set_main_txt[/text][/grep][/text]My problem is that the [b] and the [/b] does NOT get parsed while the [i] and [/i] gets parsed correctly. The result is that when I output the variable set_main_txt only the word and bold italic get written in italic but nothing is written in bold.Hope someone can help me out here...PowerPallehttp://www.qt.dk/ (The new WebDNA Forum in development)------------------------------------------------------------- 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: Grep question [parsing variables] problem (Gyuri 2003)
  2. Re: Grep question [parsing variables] problem (Rob Marquardt 2003)
  3. Re: Grep question [parsing variables] problem (Gyuri 2003)
  4. Re: Grep question [parsing variables] problem (John Peacock 2003)
  5. Re: Grep question [parsing variables] problem (Palle Bo Nielsen 2003)
  6. Re: Grep question [parsing variables] problem (John Peacock 2003)
  7. Grep question [parsing variables] problem (Palle Bo Nielsen 2003)
Hi John,Well it should have stated...this is a test [b]with bold [i]and bold italic[/i] words[/b]My bad when I wrote the mail to the list... but it still don't work...PowerPalle On torsdag, jan 30, 2003, at 21:40 Europe/Copenhagen, John Peacock wrote:> Palle Bo Nielsen wrote: >> this is a test [b]with bold [i]and bold italic[/i] words You are missing a [/b] tag, so the grep will not work... > Trying to create a parsing mechanism, but can't get it to work the right way.I am posting a form like this examplethis is a test [b]with bold [i]and bold italic[/i] wordsThe text above is put into the variable set_main_txt which should be parsed through this grep parsing engine in the order below, which means that it first checks for [b] and [/b] and replaces them with and and then do the same with [i]...[!] -- REPLACE [b] WITH (ignore case) text [/!] [text]set_main_txt=[grep search=\[[bB]\]([^[unurl]%5B[/unurl]]*)\[/[bB]\]&replace=\1][text]set_main_txt[/text][/grep][/text][!] -- REPLACE [i] WITH (ignore case) text [/!] [text]set_main_txt=[grep search=\[[iI]\]([^[unurl]%5B[/unurl]]*)\[/[iI]\]&replace=\1][text]set_main_txt[/text][/grep][/text]My problem is that the [b] and the [/b] does NOT get parsed while the [i] and [/i] gets parsed correctly. The result is that when I output the variable set_main_txt only the word and bold italic get written in italic but nothing is written in bold.Hope someone can help me out here...PowerPallehttp://www.qt.dk/ (The new WebDNA Forum in development)------------------------------------------------------------- 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/ Palle Bo Nielsen

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:

Problems with shopping cart (1997) Searchable WebCat (etc.) Docs ? (1997) Custom error files (1998) searchable list archive (1997) RE: Problem (1997) snicker, snicker (1997) REPOST: Large founditems loops (2000) Execute Applescript (1997) Large founditems loops (2000) WebCat2 - Getting to the browser's username/password data (1997) WebCat/CyberStudio Compatibility (1998) Wanted: More Math Functions (or, Can You Solve This?) (1997) RE: [WebDNA] Calendar Edit (2010) Make sure I understand this??? (1997) Plugin vs. CGI (1998) Running 2 two WebCatalog.acgi's (1996) Press Release hit the NewsWire!!! (1997) High ASCII inside [LOOKUP] inside [LISTWORDS] (1998) Trouble with formula.db (1997) emailer setup (1997)