Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cleaning Tex Edit +



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

etc.

I have tried unsucessfully :

--
replace looking for "^c^*^c" replacing with "^c"
--
replace looking for "<^c>^*<^c>" replacing with "^c"
--
replace looking for "<^c><^*><^c>" replacing with "^c"
--

When I try:
--
replace looking for "^c^c" replacing with "^c"
--
the replacement is made, but concerns only double CR (CR-CR -> CR), not mulptiple ones (CR-CR-CR-CR-> CR).
I have to launch the script n times to replace all double CR.

Thanks for your help.
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.