Re: Grep and removing text

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45228
interpreted = N
texte = That did it. Thank you.Sincerely Nitai Aventaggiato CEOOn 13.11.2002 6:07 PM, Brian Fries wrote:> URL the search parameter... > > [text show=T]x=This is a sunny day --some_thing_here-- how do you, > like it?[/text]
> [grep search=[url]--[a-zA-Z0-9_]+--[/url]&replace=][x][/grep]
> > gives me the expected result: > > This is a sunny day --some_thing_here-- how do you, like it? > This is a sunny day how do you, like it? > > - brian > > At 2:00 PM 11/13/02, Nitai @ ComputerOil 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. >> >> Sincerely >> Nitai Aventaggiato >> CEO >> >> On 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 business >> Content Management & eBusiness Systems >> >> ComputerOil 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/ > > > -- > <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com => > <= Macintosh, Internet and Multimedia http://www.artsofauburn.com => > <= Development and Consulting http://www.neontrail.com => > > ------------------------------------------------------------- > 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 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)
That did it. Thank you.Sincerely Nitai Aventaggiato CEOOn 13.11.2002 6:07 PM, Brian Fries wrote:> URL the search parameter... > > [text show=T]x=This is a sunny day --some_thing_here-- how do you, > like it?[/text]
> [grep search=[url]--[a-zA-Z0-9_]+--[/url]&replace=][x][/grep]
> > gives me the expected result: > > This is a sunny day --some_thing_here-- how do you, like it? > This is a sunny day how do you, like it? > > - brian > > At 2:00 PM 11/13/02, Nitai @ ComputerOil 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. >> >> Sincerely >> Nitai Aventaggiato >> CEO >> >> On 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 business >> Content Management & eBusiness Systems >> >> ComputerOil 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/ > > > -- > <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com => > <= Macintosh, Internet and Multimedia http://www.artsofauburn.com => > <= Development and Consulting http://www.neontrail.com => > > ------------------------------------------------------------- > 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 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:

Beta 18 (1997) Authenticate (1997) Sendmail html/text and CCS problem (2003) UPPERCASE (1997) [WebDNA] detailed description of what [sendmail] does - repost please (2012) Shopping Cart Page (1997) [WebDNA] [OT] the "Work in progress" thread. (2009) Emailer setup (1997) Apple event reply error (-1) (1997) THE ANSWER - why .HTML pages no processing? (2000) select multiple (1997) # fields limited? (1997) Semi OT: IE losing info from forms when back button is used (2005) Verifying and adding new users (1997) Separate SSL Server (1997) Securing/hiding database file (2000) PSC recommends what date format yr 2000??? (1997) [WebDNA] To be or not to be friendly (URLs) (2011) question... no field names? (2002) thankyou.tmpl (1997)