[jawsscripts] Re: Removing Carriage Return/Line Feeds from string 2

  • From: "John Robichaud" <JRobichaud@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 17 Apr 2009 18:31:18 -0400

Sean,
Thanks, that's exactly what I was looking for.
John 

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Sean Randall
Sent: Friday, April 17, 2009 6:23 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Removing Carriage Return/Line Feeds from string 2

John,

In a windows file an end of line marker is denoted with a return \r and a
newline \n, ascii codes 10 and 13 respectively.  Onscreen or situation
depending you may just have one or both.  Simply taking out all newlines is
easy enough with...
;code:
Let input = StringReplaceSubstrings (input, "\n", "") ;code ends

Note that this will not leave any space between the strings, unless of
course the lines terminate with tabs or spaces.  If you're wishing to remove
the returns and newlines, replace "\n" with "\r\n".

Hope that helps,
Sean.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Robichaud
Sent: Friday, April 17, 2009 10:55 PM
To: JawScripts
Subject: [jawsscripts] Removing Carriage Return/Line Feeds from string 2

Woops, sorry about that. Ironically it looks like the string in question
from my original message had the carriage returns/line feeds removed in my
email message. Here's how the string actually looks:
Complete Case File - DIA Board Number: 4356006

Complete Case File - DIA Board Number: 115906

OEVR - DIA Board Number: 34406\007


John Robichaud



__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: