Re: Grep -- remove extra returns first
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52114
interpreted = N
texte = I just solved this problem (the multi-line one) today. Try this:[grep search=.*(http://[^ ]*).*&replace=\1][grepsearch=[%0D%0A%0B]&replace=][mystring][/grep][/grep]By putting everything on one line, it can be parsed.Billon 8/7/03 9:53 PM, Rajeev Kumar at raj@idfk.com.au wrote:> what do you mean?> Can you paste a blob of text, for which it won't work?> > ----- Original Message -----> From: "Jesse Williams-Proudman"
> To: "WebDNA Talk" > Sent: Friday, August 08, 2003 11:47 AM> Subject: Re: Grep Question> > >> On 8/7/03 6:36 PM, "Rajeev Kumar" wrote:>> >>> [text show=T]MyString=This puts you in the> http://domain.com/images/Photos/>>> directory. Please make sure you name and date each folder.[/Text]>>>
>>> [grep search=(http://[^ ]*)&replace= href="\1">\1][MyString][/grep]>> >> This won't execute the replace if there is a new line, etc... That's my>> problem with that.>> >> >> -- >> 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/-------------------------------------------------------------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:
I just solved this problem (the multi-line one) today. Try this:[grep search=.*(http://[^ ]*).*&replace=\1][grepsearch=[%0D%0A%0B]&replace=][mystring][/grep][/grep]By putting everything on one line, it can be parsed.Billon 8/7/03 9:53 PM, Rajeev Kumar at raj@idfk.com.au wrote:> what do you mean?> Can you paste a blob of text, for which it won't work?> > ----- Original Message -----> From: "Jesse Williams-Proudman" > To: "WebDNA Talk" > Sent: Friday, August 08, 2003 11:47 AM> Subject: Re: Grep Question> > >> On 8/7/03 6:36 PM, "Rajeev Kumar" wrote:>> >>> [text show=T]MyString=This puts you in the> http://domain.com/images/Photos/>>> directory. Please make sure you name and date each folder.[/Text]>>>
>>> [grep search=(http://[^ ]*)&replace= href="\1">\1][MyString][/grep]>> >> This won't execute the replace if there is a new line, etc... That's my>> problem with that.>> >> >> -- >> 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/-------------------------------------------------------------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:
Dynamic Pop Up Menus with Record Value Selected (1998)
a * question (2003)
includes and cart numbers (1997)
WebDNA 6.x - what linux distro woudl you use? (was: (2004)
[OT] Disable/enable field (2003)
Sku numbers (1997)
using listfiles to build a database? more (2000)
[WebDNA] paypal (2009)
different show next (1997)
Setting up WebCatalog with Retail Pro data (1996)
Contract Work (2000)
Processing all html files through WebCat or Typhoon (1998)
legal html [ConvertChars] (2007)
Items XX to XX shown (1997)
default value from Lookup (1997)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
newbie Q: [cart] documentation (1999)
SiteEdit (1999)
Buying sans cart (1997)
WebCat2b15MacPlugin - showing [math] (1997)