Re: Grep and removing text
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45195
interpreted = N
texte = On 13.11.2002 2:31 PM, Christer Olsson
wrote:>> Ok, I have tried about every variation of code I could come up with and>> found no solution.>> >> I have a text like:>> >> This is a sunny day --some_thing_here-- how do you, like it?>> >> Now with grep I want to remove the --some_thing_here--.>> >> Thus using:>> >> [grep search=--[a-zA-Z0-9]+--&replace=] the text above [/grep]>> >> Shouldnšt this be the best way? I am really confused about this, since we>> have used Grep a lot of times and it always worked.> > Try wildcard:> > [grep search=--.+--&replace=]> > . will match any character except line breakNope did not do it either:-(Just to see if it works I tried [grep search=--some_thing_here--&replace=]and that DOES work.SincerelyNitai AventaggiatoCEO-- Tools to energize your businessContent Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/Hauptstrasse 12 info@computeroil.com8252 Schlatt/SwitzerlandTel: +41 (0)52 654 15 55Fax: +41 (0)52 654 15 59-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On 13.11.2002 2:31 PM, Christer Olsson wrote:>> Ok, I have tried about every variation of code I could come up with and>> found no solution.>> >> I have a text like:>> >> This is a sunny day --some_thing_here-- how do you, like it?>> >> Now with grep I want to remove the --some_thing_here--.>> >> Thus using:>> >> [grep search=--[a-zA-Z0-9]+--&replace=] the text above [/grep]>> >> Shouldnšt this be the best way? I am really confused about this, since we>> have used Grep a lot of times and it always worked.> > Try wildcard:> > [grep search=--.+--&replace=]> > . will match any character except line breakNope did not do it either:-(Just to see if it works I tried [grep search=--some_thing_here--&replace=]and that DOES work.SincerelyNitai AventaggiatoCEO-- Tools to energize your businessContent Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/Hauptstrasse 12 info@computeroil.com8252 Schlatt/SwitzerlandTel: +41 (0)52 654 15 55Fax: +41 (0)52 654 15 59-------------------------------------------------------------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://search.smithmicro.com/
Nitai @ ComputerOil
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:
Purchae error - Fixed to a degree (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Error handling for accountNum (1997)
problems with 2 tags shakur (1997)
Not Enough Memory for Database? (2003)
carriage returns in data (1997)
tag request (1999)
Spamming this list! (2000)
[WebDNA] Encode cookies ONLY via "method=Base64" (2008)
WebDNA-Talk Digest mode broken (1997)
WebStar Secure on other machine (1997)
[WebDNA] Inline email images (2011)
thankyou.tmpl (1997)
Help name our technology! I found it (1997)
RE: shrink-wrapped version out yet? (1997)
WebDNA / Red Hat 9 ? (2003)
Server Error Question [bug?] (2004)
Keeping text formatting (like hard returns) (2002)
WebCommerce: Folder organization ? (1997)
triggering an update of two frames (1998)