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:

WebCatalog for guestbook ? (1997) [WebDNA] php/mySQL version of WebDNA Speed Test? (2009) Missing Cart Information (2003) Can webcat 3.0/4.0 handle 1,000,000 hits a day? (2000) Changes to [ReturnRaw] in 3.0 (1998) Expected Behavior? (1999) HELP! 10K hits per hour for pages that no longer exist! (2000) NT considerations (1997) Tracking E-mail click thrus (2001) [OT] iFrame (body) Q (2004) what's wrong with this picture (2006) WebCatalog/Mac 2.1b2 New Features (1997) Authenticate (1997) Physical Security for WebCatalog Directories (1997) Limiting user access to .tmpl files (1997) Radius-Based Zip Locator (2005) Question re: FlushDatabases (1997) WebCat2: multiple currency support (1997) Exclamation point (1997) Displaying xx number of characters (1997)