WebDNA Grep help wanted
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56178
interpreted = N
texte = 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/
Associated Messages, from the most recent to the oldest:
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/
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:
Help Please WebDNA 6 Secure Forms Problem (2004)
Before I Can Begin . . . (1998)
[OT] What log analyzer do you use? (2000)
A little syntax help (1997)
Cookies and webcat (1997)
emailer setup (1997)
Security for malls with different webmasters (1998)
OT: Website Promotion (1998)
Protecting webdelivery (1997)
Don't tick me off :) [elaspedtime] (1997)
processing .html pages (2001)
Country & Ship-to address & other fields ? (1997)
Truncated Sendmail (1998)
Search returns all, not 20 (1997)
Re:Password Authentication - request example (1998)
File Upload (1997)
protect tag on NT IIS (1997)
Logging purchases (1997)
Price Not Appearing (2000)
[WebDNA] HTTP Streaming -- impossible? (2010)