Re: WebDNA Grep help wanted
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56180
interpreted = N
texte = 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 ;)PalleOn 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 hilsenPalle 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/
Associated Messages, from the most recent to the oldest:
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 ;)PalleOn 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 hilsenPalle 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/
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:
[WebDNA] WebDNA is not configured to accept requests to host: auto-glass-xpress.com (2019)
Search in 2 or more catalogs (1997)
WebCat2.0 acgi vs plugin (1997)
Credit Card Checksum (1997)
WebCat NT v. Mac (1997)
Running _every_ page through WebCat-error.html (1997)
Digital Postcards (1999)
WCS Newbie question (1997)
[WebDNA] Should I be able to use [setmimeheader name=Content-Type (2018)
Re:Up-date for Webcatalog 2.0 (1998)
[WebDNA] Seriously what is wrong here? (2011)
WebSTAR/WebCat is serving .db files! (1999)
Sendmail & Time Issue (2001)
[WriteFile] problems (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
MacActivity and PCS (1997)
Help name our technology! I found it (1997)
quotes and truncating? (1997)
Template transformed itself into a database? (1998)
Swear words (2002)