REplace issue in livecode -
REplace issue in livecode -
how overcome issue relating replaces. need replace " snn" "" & " sss" & "" in myhtml. replace " snn" " sss". not work in begin of line(newline, \n).
let's assume have next data
the man stands on floor man etc
in field 1. can replace occurrence of the or the or space & the or linefeed & the an using next syntax
on mouseup set word 1 -1 of replacetext(space & fld 1,"[\n ][tt]he "," ") end mouseup note preceding space, removed 1 time again using word 1 -1.
unfortunately, syntax replaces linefeeds spaces. id on't know if want this. if not, i'd suggest using 2 lines, 1 space , 1 linefeed.
on mouseup set replacetext(space & fld 1,"[\n]([tt]he) ",cr & "an ") mytempvar set word 1 -1 of replacetext(mytempvar,"[ ]([tt]he) "," ") end mouseup it seems little unusual me replace "the" "an" you're asking for.
livecode
Comments
Post a Comment