Finding in reverse

Ken Ray kray at sonsothunder.com
Wed Jul 5 19:40:41 EDT 2006


On 7/5/06 12:25 PM, "Jim Ault" <JimAultWins at yahoo.com> wrote:

> and then back to 2 lines for one more feature...
>> set the itemdelimiter to "/"; put last item of myFilePath into myFilename
>> set the itemdelimiter to "."; put last item of myFilename into myExtension

and back to 1 line with regex:

  get matchText(myFilePath,".*\/(.*?\.(.*))$",myFileName,myExtension)

:-)


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list