Re: WebDNA Grep help wanted
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56179
interpreted = N
texte = would a custom convert characters database work better and be more suitablefor this maybe?----- Original Message ----- From: "Palle Bo Nielsen"
To: "WebDNA Talk" Sent: Wednesday, February 18, 2004 9:44 AMSubject: 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/
Associated Messages, from the most recent to the oldest:
would a custom convert characters database work better and be more suitablefor this maybe?----- Original Message ----- From: "Palle Bo Nielsen" To: "WebDNA Talk" Sent: Wednesday, February 18, 2004 9:44 AMSubject: 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/
"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:
Formating found categories (1997)
Protect (1997)
WebCat2b13MacPlugIn - [include] (1997)
searchable list archive (1997)
[Announce]: Web server security and password protection (1997)
WebCat2: Formulas.db question (1997)
WC1.6 to WC2 date formatting (1997)
[WebDNA] Technical References (2009)
Showing formatted results in tables (2002)
RE: Renaming textA (1998)
[WebDNA] Solaris version? (2008)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
More on the email templates (1997)
Pre-flight public flag (1997)
(2000)
Navigator Parsing (1997)
Where is f2? (1997)
AAgghh!! Help, please. SSL strikes again. (1997)
Emailer setup (1997)
Re:quit command on NT (1997)