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:
PIXO support (1997)
Problems with [Applescript] (1997)
[BoldWords] WebCat.acgib15Mac (1997)
(1997)
Requiring that certain fields be completed (1997)
2nd WebCatalog2 Feature Request (1996)
[WebDNA] Cicada - WebDNA_CICADA_6.1.b02 - gratz and request...! (2009)
Sorting by SKU Not Working (1998)
Reversed words (1997)
Country & Ship-to address & other fields ? (1997)
A question about security (1998)
converted seed value? (1998)
RAW=T..Strange behaviour (2000)
Grep -- remove extra returns first (2003)
Quick Question (1997)
WCS Newbie question (1997)
Grep search not working (2002)
Weird Cookie Problem - your answer (2007)
Capturing the referring site (1999)
return missing item (was:WebCat Sales) (1997)