Re: Filter a text string
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.
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