Re: Grep -- remove extra returns first

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52123
interpreted = N
texte = [grep search=(http://[^ %0D%0A%0B]*)&replace=\1][mystring][/grep] This works for me. on 8/8/03 2:23 AM, Jesse Williams-Proudman at j.list@blueboxcode.com wrote: > On 8/7/03 11:15 PM, "William DeVaul" wrote: > >> Mystring=asdfaf >> Asdf >> Aaa http://www.cnn.com ad >> Asd >> >> Grepping mystring at the terminal for http://[^ ] will return only the line: >> Aaa http://www.cnn.com ad >> >> Grepping mystring in Web Cat returns all of mystring plus or minus any >> replacements. If grepped as above, Web Cat returns: >> asdfaf >> Asdf >> Aaa http://www.cnn.com ad >> Asd > > Ok, taking your example, try your grep on this test: > > Mystring=asdfaf > Asdf > Aaa http://www.cnn.com ad > Asd > http://www.cnn.com > Adsadf > Asd > Asds http://www.cnn.com > > It will catch the first cnn.com but not the second or the third because they > are followed by returns and not spaces. That's my problem. ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep -- remove extra returns first ( William DeVaul 2003)
  2. Re: Grep -- remove extra returns first ( "Rajeev Kumar" 2003)
  3. Re: Grep -- remove extra returns first ( Jesse Williams-Proudman 2003)
  4. Re: Grep -- remove extra returns first ( "Rajeev Kumar" 2003)
  5. Re: Grep -- remove extra returns first ( Jesse Williams-Proudman 2003)
  6. Re: Grep -- remove extra returns first ( William DeVaul 2003)
  7. Re: Grep -- remove extra returns first ( Jesse Williams-Proudman 2003)
  8. Re: Grep -- remove extra returns first ( William DeVaul 2003)
[grep search=(http://[^ %0D%0A%0B]*)&replace=\1][mystring][/grep] This works for me. on 8/8/03 2:23 AM, Jesse Williams-Proudman at j.list@blueboxcode.com wrote: > On 8/7/03 11:15 PM, "William DeVaul" wrote: > >> Mystring=asdfaf >> Asdf >> Aaa http://www.cnn.com ad >> Asd >> >> Grepping mystring at the terminal for http://[^ ] will return only the line: >> Aaa http://www.cnn.com ad >> >> Grepping mystring in Web Cat returns all of mystring plus or minus any >> replacements. If grepped as above, Web Cat returns: >> asdfaf >> Asdf >> Aaa http://www.cnn.com ad >> Asd > > Ok, taking your example, try your grep on this test: > > Mystring=asdfaf > Asdf > Aaa http://www.cnn.com ad > Asd > http://www.cnn.com > Adsadf > Asd > Asds http://www.cnn.com > > It will catch the first cnn.com but not the second or the third because they > are followed by returns and not spaces. That's my problem. ------------------------------------------------------------- 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://webdna.smithmicro.com/ William DeVaul

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:

calculating tax rates, mail order solutions and version 2 (1997) Running WebCat from a CD-ROM (1997) Help name our technology! I found it (1997) emailcompleted and emailproblem folders (2005) Number of Line Items (1998) Deleting Cookie Problems (2007) $Replace with [founditems] (1997) encrypt/decrypt (2001) WebDNA tags in WebMerchant email templates ... (1997) Date problems-more (1997) multi-paragraph fields (1997) Moment of Thanks (1997) Transfer of data from Invoice to thank you templates (1998) Resume Catalog ? (1997) WC1.6 to WC2 date formatting (1997) unable to launch acgi in WebCat (1997) Help needed! (1998) NT vs Mac (1997) re:check boxes (1997) Ampersand Character (&) (1997)