• 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: Filter a text string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filter a text string


  • Subject: Re: Filter a text string
  • From: Thomas Fischer <email@hidden>
  • Date: Tue, 11 Oct 2011 18:03:40 +0200

Hi Bert,

if you have (or are willing to get) the Satimge.osax (it's free) then

set myString to "The <letter>a</letter> quick <photo>12</photo> brown fox jumps <photo>150</photo> over the <mode>x</mode> lazy dog."
set myNewString to change " *<(.*?)>.*?</\\1> *" into " " in myString with regexp

will do the job.
I don't know how fast their regexp engine is, though.

Best
Thomas


Am 11.10.2011 um 17:19 schrieb Bert Groeneveld:

set myString to "The <letter>a</letter> quick <photo>12</photo> brown fox jumps <photo>150</photo> over the <mode>x</mode> lazy dog."

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Filter a text string (From: Bert Groeneveld <email@hidden>)

  • Prev by Date: Re: Filter a text string
  • Next by Date: Re: Reading IPTC and EXIF information from photos
  • Previous by thread: Re: Filter a text string
  • Next by thread: Re: Filter a text string
  • Index(es):
    • Date
    • Thread