• 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: Search & Replace multiple Paragraph returns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search & Replace multiple Paragraph returns


  • Subject: Re: Search & Replace multiple Paragraph returns
  • From: Tim Mansour <email@hidden>
  • Date: Thu, 9 Jun 2005 17:06:50 +1000

tell application "TextCommands" -- [1]
    search NewsItem for "[\\r\\n]+" replacing with "\\r" with regex
    set NewsItem to the result
end tell

I am unfamiliar with what the + sign does.

In English, has's search pattern "[\\r\\n]+" can be read as "one or more returns or newlines". So every instance of "one or more returns or newlines" is being replaced by a single return.


--
Tim Mansour <email@hidden>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Search & Replace multiple Paragraph returns (From: doug rogers <email@hidden>)

  • Prev by Date: Redirect a message in Mail
  • Next by Date: Re: Search & Replace multiple Paragraph returns
  • Previous by thread: Re: Search & Replace multiple Paragraph returns
  • Next by thread: Re: Search & Replace multiple Paragraph returns
  • Index(es):
    • Date
    • Thread