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.Sincerely Nitai Aventaggiato CEO-- Tools to energize your business Content Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/ Hauptstrasse 12 info@computeroil.com 8252 Schlatt/Switzerland Tel: +41 (0)52 654 15 55 Fax: +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:

    
  1. Re: Grep and removing text (Nitai @ ComputerOil 2002)
  2. Re: Grep and removing text (Brian Fries 2002)
  3. Re: Grep and removing text (devaulw@onebox.com 2002)
  4. Re: Grep and removing text (Nitai @ ComputerOil 2002)
  5. Re: Grep and removing text (Christer Olsson 2002)
  6. Re: Grep and removing text (Nitai @ ComputerOil 2002)
  7. Re: Grep and removing text (Frank Nordberg 2002)
  8. Re: Grep and removing text (Nitai @ ComputerOil 2002)
  9. Re: Grep and removing text (Christer Olsson 2002)
  10. Re: Grep and removing text (Frank Nordberg 2002)
  11. Re: Grep and removing text (Frank Nordberg 2002)
  12. Re: Grep and removing text (Nitai @ ComputerOil 2002)
  13. Re: Grep and removing text (Christer Olsson 2002)
  14. Re: Grep and removing text (Kenneth Grome 2002)
  15. Grep and removing text (Nitai @ ComputerOil 2002)
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.Sincerely Nitai Aventaggiato CEO-- Tools to energize your business Content Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/ Hauptstrasse 12 info@computeroil.com 8252 Schlatt/Switzerland Tel: +41 (0)52 654 15 55 Fax: +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:

Generating unique SKU from [cart] - Still Stumped... (1997) Server Freeze (1998) Silly Question (1997) Server Error Question [bug?] (2004) [WebDNA] opinions on [switch] [case]... (2009) [searchString] (1997) Email notification to one of multiple vendors ? (1997) can WC render sites out? (1997) Showif, Hideif reverse logic ? (1997) Tab Charactor (1997) emailer (1997) server admin problems (2005) Re:Need help... (1997) WC TableGrinder (1997) Re:multiple digests, please stop (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) READFILE command? (1998) Further tests with the infamous shipCost (1997) 4.5.1 for OSX (2003) Malformed Pages (1999)