Re: Grep -- remove extra returns first
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52119
interpreted = N
texte = 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> AsdOk, taking your example, try your grep on this test:Mystring=asdfafAsdfAaa http://www.cnn.com adAsdhttp://www.cnn.comAdsadfAsdAsds http://www.cnn.comIt will catch the first cnn.com but not the second or the third because theyare followed by returns and not spaces. That's my problem.-- Jesse Williams-Proudman Blue Box Code () Custom Web Solutions+1.206.778.8777 () jesse@blueboxcode.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
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> AsdOk, taking your example, try your grep on this test:Mystring=asdfafAsdfAaa http://www.cnn.com adAsdhttp://www.cnn.comAdsadfAsdAsds http://www.cnn.comIt will catch the first cnn.com but not the second or the third because theyare followed by returns and not spaces. That's my problem.-- Jesse Williams-Proudman Blue Box Code () Custom Web Solutions+1.206.778.8777 () jesse@blueboxcode.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://webdna.smithmicro.com/
Jesse Williams-Proudman
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:
Refering page (1998)
How does WebCatalog search the database? (1997)
[ShowNext] feature in 2.0 (1997)
POST (1997)
send mail problem? (1997)
Pricelist (1999)
can't find the pdf (1999)
carriage returns in data (1997)
when will the list move? (nm) (2000)
[WebDNA] How to Combine a search with Webdna and JS (2017)
Unusual characters in the db ... (2002)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Used to be good 4.5 to 6 code change (2004)
Protect and Serve (1999)
Progress !! WAS: Trouble with formula.db (1997)
Multiple Pulldowns (1997)
LetterRip and WebCat & more (1998)
Re[2]: Field Problem (2000)
'does not contain' operator needed ... (1997)
Unexpected error (1997)