Re: Simple text question
Re: Simple text question
- Subject: Re: Simple text question
- From: KOENIG Yvan <email@hidden>
- Date: Mon, 7 Jul 2008 19:37:32 +0200
set thisText to "6000[F]this is test (#1).
6001[F]this is test (#2)."
set nb to count of my decoupe(thisText, "[F]")
if nb > 1 then set nb to nb - 1
log nb
--=============
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=============
Yvan KOENIG (from FRANCE lundi 7 juillet 2008 19:37:18)
_______________________________________________
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