• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cleaning Tex Edit +
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cleaning Tex Edit +


  • Subject: Re: Cleaning Tex Edit +
  • From: Christopher Nebel <email@hidden>
  • Date: Sun, 30 Nov 2003 16:26:35 -0800

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.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Cleaning Tex Edit + (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Re: list disks on Panther
  • Next by Date: Hiding Application after running script
  • Previous by thread: Re: Cleaning Tex Edit +
  • Next by thread: Hiding Application after running script
  • Index(es):
    • Date
    • Thread