Re: applescript-users digest, Vol 3 #2202 - 14 msgs
Re: applescript-users digest, Vol 3 #2202 - 14 msgs
- Subject: Re: applescript-users digest, Vol 3 #2202 - 14 msgs
- From: Bernard Azancot <email@hidden>
- Date: Mon, 1 Dec 2003 11:45:37 +0100
Le 1 dic. 03, ` 06:35, email@hidden a
icrit :
On Nov 30, 2003, at 9:17 AM, Bernard Azancot wrote:
I want to replace every double CR by a single one, in one script pass.
CR-CR -> CR
CR-CR-CR-> CR
CR-CR-CR-CR-> CR
So, you actually want to replace every sequence of two or more CRs with
a single one? Try this:
replace looking for "^c^c+" replacing with "^c" with grep
The "with grep" is probably the bit you were missing -- the standard
find meta-symbol ^* just matches an arbitrary string, not a repeat of
the previous character.
Wonderful !
Simple and efficient.
Many thanks.
BA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.