MatchText to a period?
Posted: Wed Jan 06, 2010 5:10 pm
In the following code:
Why is matchText evaluating to true? There is no period in CurrentWord.
My real code is basically looking through a bunch of text word by word and looking for a period using matchtext to the currentword to see if it is at the end of a sentence. MatchText returns true for every word.
What am I doing wrong?
Thanks,
Shawn
Code: Select all
on mouseUp
put "Trial" into CurrentWord
answer matchText(CurrentWord, ".")
end mouseUp
My real code is basically looking through a bunch of text word by word and looking for a period using matchtext to the currentword to see if it is at the end of a sentence. MatchText returns true for every word.
What am I doing wrong?
Thanks,
Shawn