Re: Parsing text from a string
Re: Parsing text from a string
- Subject: Re: Parsing text from a string
- From: John Stewart <email@hidden>
- Date: Wed, 16 Mar 2005 16:11:35 -0500
On 03/16/05 at -0800 Todd Geist said this
>I am just full of questions today :>)
>
>If I have the string "Have a [Nice] [Day]"
>
>I want what is in the first set of brackets "Nice". The brackets will
>always be somewhere in the string and I want what is in side of them.
>
>Thanks so much for all your help?
Here's a method that doesn't use text item delimiters:
--> cut <--
set txtStr to "Have a [Nice] [Day]"
set rplyStr to text ((offset of "[" in txtStr) + 1) thru ((offset of "]" in txtStr) - 1) of txtStr
--> cut <--
There's only 2 lines, the second one is wrapped.
_______________________________________________
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