Re: [WebDNA] grep again

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104382
interpreted = N
texte = --0015175ce154c1cf2f047cf4543c Content-Type: text/plain; charset=UTF-8 Bob, Hmmmm... you speak the truth. Looks like grep can't find %0A. On my test file I changed the line endings (using BBEdit) to UNIX LF. On Linux I'm getting the results below. - Tom [url]This is odd[/url] gives This%20is%0Aodd [grep search=%0A&replace=
]This is odd[/grep] gives This is odd Even weirder however: [grep search=%0A&replace=|]This is odd[/grep] gives |This is odd --0015175ce154c1cf2f047cf4543c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bob,

Hmmmm... you speak the truth. =C2=A0Looks like grep = can't find %0A. =C2=A0 On my test file I changed the line endings (usin= g BBEdit) to UNIX LF. =C2=A0 On Linux I'm getting the results below.

- Tom


[url]This is
odd[/url]

gives

This%20is%0Aodd


[grep search=3D%0A&replace=3D<br />= ]This is
<= span class=3D"Apple-style-span" style=3D"font-size: medium;">
odd[= /grep]

give= s

This is odd


Even weirder however:=C2=A0
[grep search=3D%0A&repl= ace=3D|]This is
odd[/grep]

gives=C2=A0

|This is=C2=A0odd
--0015175ce154c1cf2f047cf4543c-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] grep again (William DeVaul 2010)
  2. Re: [WebDNA] grep again (Govinda 2010)
  3. Re: [WebDNA] grep again (Brian Fries 2010)
  4. Re: [WebDNA] grep again (Bob Minor 2010)
  5. Re: [WebDNA] grep again (Kenneth Grome 2010)
  6. Re: [WebDNA] grep again (Tom Duke 2010)
  7. Re: [WebDNA] grep again (Bob Minor 2010)
  8. Re: [WebDNA] grep again (Brian Fries 2010)
  9. Re: [WebDNA] grep again (Govinda 2010)
  10. Re: [WebDNA] grep again (Kenneth Grome 2010)
  11. Re: [WebDNA] grep again (Donovan Brooke 2010)
  12. Re: [WebDNA] grep again (Brian Fries 2010)
  13. Re: [WebDNA] grep again (Bob Minor 2010)
  14. Re: [WebDNA] grep again: (how to handle replacing linefeed char?) (Govinda 2010)
  15. Re: [WebDNA] grep again (Kenneth Grome 2010)
  16. Re: [WebDNA] grep again (christophe.billiottet@webdna.us 2010)
  17. Re: [WebDNA] grep again (Kenneth Grome 2010)
  18. Re: [WebDNA] grep again (Tom Duke 2010)
  19. Re: [WebDNA] grep again (Bob Minor 2010)
  20. Re: [WebDNA] grep again (Tom Duke 2010)
  21. Re: [WebDNA] grep again (Kenneth Grome 2010)
  22. Re: [WebDNA] grep again (Bob Minor 2010)
  23. Re: [WebDNA] grep again (Kenneth Grome 2010)
  24. Re: [WebDNA] grep again (Bob Minor 2010)
  25. Re: [WebDNA] grep again (Kenneth Grome 2010)
  26. Re: [WebDNA] grep again (Bob Minor 2010)
  27. [WebDNA] grep again (Kenneth Grome 2010)
--0015175ce154c1cf2f047cf4543c Content-Type: text/plain; charset=UTF-8 Bob, Hmmmm... you speak the truth. Looks like grep can't find %0A. On my test file I changed the line endings (using BBEdit) to UNIX LF. On Linux I'm getting the results below. - Tom [url]This is odd[/url] gives This%20is%0Aodd [grep search=%0A&replace=
]This is odd[/grep] gives This is odd Even weirder however: [grep search=%0A&replace=|]This is odd[/grep] gives |This is odd --0015175ce154c1cf2f047cf4543c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bob,

Hmmmm... you speak the truth. =C2=A0Looks like grep = can't find %0A. =C2=A0 On my test file I changed the line endings (usin= g BBEdit) to UNIX LF. =C2=A0 On Linux I'm getting the results below.

- Tom


[url]This is
odd[/url]

gives

This%20is%0Aodd


[grep search=3D%0A&replace=3D<br />= ]This is
<= span class=3D"Apple-style-span" style=3D"font-size: medium;">
odd[= /grep]

give= s

This is odd


Even weirder however:=C2=A0
[grep search=3D%0A&repl= ace=3D|]This is
odd[/grep]

gives=C2=A0

|This is=C2=A0odd
--0015175ce154c1cf2f047cf4543c-- Tom Duke

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:

taxrate - off by 1 cent (1997) RE: Cart Template (1997) shipcost (1997) is sku a REQUIRED field on NT (1997) Maybe off topic but how to charge (1997) request for string functions (1998) Re[2]: Problems with WebCat (2000) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Cookies and webcat (1997) Security Issues and WebCommerce Solution (1997) Non expiring cookies again (*sorry*) (1999) Plugin or CGI or both (1997) WebCat2 several catalogs? (1997) (1997) [ShowIf] and empty fields (1997) WebCatalog can't find database (1997) Re:quit command on NT (1997) For those of you not on the WebCatalog Beta... (1997) Which [index]? (1997) all records returned. (1997)