Я хочу поймать контент между двумя символами $. Например: - это $ only $ пример $ so $ reply $ fast $. Здесь я хочу хранить текст между долларами (только, так и быстро) в массив. При использовании этого кода для ловли. Но он ловит (только, пример, так, отвечайте, быстро). Мне нужно «только», «так» и «быстро».Как получить контент в livecode
replace "\$" with "\XXdollarXX" in field "MytextField"
put the text of field "MytextField" into ss
repeat with i = 0 to the number of chars in ss
if char i of ss contains "$" then
repeat with x = i+1 to the number of chars in ss
if char x of ss contains "$" then
--answer x
put x into Lpos
put char i to Lpos of ss into jar
answer jar
put Lpos into i
end if
end repeat
end if
end repeat