Re: Grep question [parsing variables] problem
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47288
interpreted = N
texte = Hi,Why aren't you using convertwords?GyuriPalle Bo Nielsen wrote:> 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 example>> this is a test [b]with bold [i]and bold italic[/i] words>> The 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 > b>][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 > i>][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...>> PowerPalle>> http://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/>>-- Gyuri OrdodyObjects Online, Inc.-------------------------------------------------------------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:
Hi,Why aren't you using convertwords?GyuriPalle Bo Nielsen wrote:> 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 example>> this is a test [b]with bold [i]and bold italic[/i] words>> The 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 > b>][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 > i>][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...>> PowerPalle>> http://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/>>-- Gyuri OrdodyObjects Online, Inc.-------------------------------------------------------------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/
Gyuri
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:
Hideifs / Showifs (2000)
[WebDNA] BBEdit WebDNA codeless language module [correction] (2016)
Looking for 24x7 ISP for WebCatalog (1998)
Showif, Hideif reverse logic ? (1997)
problems with 2 tags (1997)
RedHat 9 & WebCatalog 4.5 (2004)
Bug alert! (1997)
still having shipCost.db Problem (1997)
WCf2 and nested tags (1997)
international time (1997)
Hyperboard/bulletin board available (1998)
[MATH] and Dates (1998)
Separate SSL Server (1997)
Requiring that certain fields be completed (1997)
[isfile] ? (1997)
chat opinion ... (2002)
Multiple 'Users.db' files not possible (1997)
Size limit for tmpl editor ? (1997)
Web Delivery Page concept (1997)
WebCatalog NT beta 18 now available (1997)