Re: Grep and removing text

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45194
interpreted = N
texte = >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 break-- ************************************************************* 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/ 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)
>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 break-- ************************************************************* 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/ Christer Olsson

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:

Stinkin' [Referrer] (1998) Another bug to squash (WebCat2b13 Mac .acgi) (1997) WebDNA Server Not Running (2005) WCS Newbie question (1997) HTML mapped to WebCat (2001) Multiple prices (1997) apparently to problem isolated (1997) searching by date (1998) [WebDNA] TEST (2013) WebCat2: Items xx to xx shown, etc. (1997) PARAMETER vs. OPERATOR (was The BUG is BACK ...) (1998) Re[2]: Field Problem (2000) customizing the color of user's pages (1997) shipCost -vs- shippingtotal ? (2000) WebCommerce: Folder organization ? (1997) New servers and new inline cache (1997) authorizenet/webmerchant (2000) showif comparison begins w/ and contains (1997) NT vs Mac (1997) Spiders, robots, whatever you want to call them (1998)