Re: Grep -- remove extra returns first
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52120
interpreted = N
texte = Ummm...[text show=T]MyString=asdfafAsdfAaa http://www.cnn.com adAsdhttp://www.cnn.comAdsadfAsdAsds http://www.cnn.com[/Text]
[grep search=(http://[~aA-zZ0-9/._-]*)&replace=
\1][MyString][/grep]Try that?----- Original Message ----- From: "Jesse Williams-Proudman"
To: "WebDNA Talk" Sent: Friday, August 08, 2003 4:23 PMSubject: Re: Grep -- remove extra returns first> 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 theline:> > 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 becausethey> are 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/-------------------------------------------------------------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:
Ummm...[text show=T]MyString=asdfafAsdfAaa http://www.cnn.com adAsdhttp://www.cnn.comAdsadfAsdAsds http://www.cnn.com[/Text]
[grep search=(http://[~aA-zZ0-9/._-]*)&replace=\1][MyString][/grep]Try that?----- Original Message ----- From: "Jesse Williams-Proudman" To: "WebDNA Talk" Sent: Friday, August 08, 2003 4:23 PMSubject: Re: Grep -- remove extra returns first> 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 theline:> > 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 becausethey> are 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/-------------------------------------------------------------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/
"Rajeev Kumar"
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:
NT Manual (1997)
PSC recommends what date format yr 2000??? (1997)
Re:no [search] with NT (1997)
Credit Card Checksum (1997)
CommandSecurity? (1997)
WCS Newbie question (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
WebMerchant when CC network is down (1998)
WC2.0 Memory Requirements (1997)
off-topic - printinglib 68K (1997)
Emailer (1999)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Stay on Products page (2003)
Netscape 3.01 can't see db in form (was problems problemsproblems) (1997)
Execute Applescript (1997)
[OT] Who's got a cool link (2002)
[WebDNA] Authorize.net (2014)
how to do multiple prices/item? (1998)
Feature Request: DB Field manipulation (1998)
WebCat2.0 acgi vs plugin (1997)