Re: Grep and removing text
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45193
interpreted = N
texte = Ok, I have tried about every variation of code I could come up with andfound 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 wehave used Grep a lot of times and it always worked.SincerelyNitai AventaggiatoCEOOn 13.11.2002 1:00 PM, Christer Olsson
wrote:>>> [grep search=--[a-zA-Z0-9_]+--&replace=]some text[/grep]>> >> The more I look at this code, the less I like it. Is the + sign>> really supposed to be *outside* the square brackets?> > Yes.> >> If so, what would have happened if the original text string was>> something like ++links_regio_w++ instead of --links_regio_w-- ?> > Then you would have had to escape them: \+> --> > *************************************************************> Christer Olsson PO Box 9160 Phone +46 40 25 85 85> Ljusa Idéer AB SE-200 39 Malmoe Fax +46 40 25 85 89> Kantyxegatan 5 Sweden http://www.ljusaideer.se> > -------------------------------------------------------------> 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/-- 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:
Ok, I have tried about every variation of code I could come up with andfound 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 wehave used Grep a lot of times and it always worked.SincerelyNitai AventaggiatoCEOOn 13.11.2002 1:00 PM, Christer Olsson wrote:>>> [grep search=--[a-zA-Z0-9_]+--&replace=]some text[/grep]>> >> The more I look at this code, the less I like it. Is the + sign>> really supposed to be *outside* the square brackets?> > Yes.> >> If so, what would have happened if the original text string was>> something like ++links_regio_w++ instead of --links_regio_w-- ?> > Then you would have had to escape them: \+> --> > *************************************************************> Christer Olsson PO Box 9160 Phone +46 40 25 85 85> Ljusa Idéer AB SE-200 39 Malmoe Fax +46 40 25 85 89> Kantyxegatan 5 Sweden http://www.ljusaideer.se> > -------------------------------------------------------------> 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/-- 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:
More than one db with the same namn (was: WC2f3) (1997)
[include] error message (was:how to put/keep product customization info in basket?) (1998)
cybercash (1997)
select multiple 2 more cents (1997)
Date calculation problems (1997)
Major NT problem Interruption of service (1998)
Realtime Top 10 (1999)
no global [username] or [password] displayed ... (1997)
[TaxableTotal] - not working with AOL and IE (1997)
Lambada for Macintosh is Here! (1996)
possible, WebCat2.0 and checkboxes-restated (1997)
Paths (1998)
Conditional searching & displaying (1997)
WebDelivery downloads alias, not original ? (1997)
Re:2nd WebCatalog2 Feature Request (1996)
RE: Web*SSL and WebCatalog (1997)
Reversed words (1997)
[Sum] function? (1997)
Merging databases (1997)
format search comparison Q (2000)