I want to create a function that returns a substring of a specific string from the beginning of a specified string to, but not including the beginning of another specific string. Ideas?
So something like:
substrUpTo(theStr, subStr)
so if I enter substrUpTo("Today is my birthday", "my") , it will return the substring of the first argument to, but will not include where the second argument begins. (i.e. it will return "Today is " )
function string substring methods applescript
Alexsander akers
source share