MACSCRPT Archives

June 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Emmanuel <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 7 Jun 2006 14:14:06 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
At 8:37 PM +1000 6/7/06, Timothy Bates wrote:
>change "\\n+" into "\\n" in z regexpflag {"EXTENDED"} with regexp

I think that Joe really needs \\r rather than \\n (he says "carriage 
return"), whence:

set z to change "\\r+" into "\\r" in z with regexp

(I think the regexpflag is not needed here.)

>On 07/06/2006, at 7:10 PM, Joe Barwell wrote:
>>I've been wrestling with a very basic regex problem, using Satimage
>>osax, os 10.3.9. Basically, I want to strip multiple blank lines
>>(i.e. carriage-returns), but leave the remaining text and single
>>carriage-returns, e.g. the data may look like this:

Emmanuel

ATOM RSS1 RSS2