I have a script that has a repeat loop that set a variable to some text I would like to be able to search that text and different information out. like any date it contains or times.
thanks in advance for any help
thanks in advance for any help
set theText to "test of extracting the time 19:30 from all of the other text"
set theOffset to offset of ":" in theText
set num to theOffset - 2
set thetime to text (theOffset + 2) thru num of theText
set theText to "test of extracting the time 19:30 from all of 19 the other text"
set theFoundTimes to find text "[0-9]{2}:[0-9]{2}" in theText with all occurrences and regexp