A simple (quick and dirty) non-regex solution (use LC 7 or LC 8) on mouseUp put replaceMyThings(fld 1) into fld 2 end mouseUp
function replaceMyThings LL set itemdelimiter to "set the unicodeText of fld "& \ quote&"fPROC""e&" to numToCodePoint(" repeat for each line L in LL put item 2 of L into L2 if L2 is empty then put cr & L after MM else put cr & "put numToCodePoint(" & L2 & \ " into fld ""e&"fPROC""e after MM end if end repeat return char 2 to -1 of MM end replaceMyThings Richmond wrote > Here's a puzzle: > > I need to replace thousands of lines like this: > > set the unicodeText of fld "fPROC" to numToCodePoint(57669) > > with this: > > put numToCodePoint(57669) into fld "fPROC" > > the problem is that the number of the codePoint is different in each case. > > Wildcards? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode@.runrev > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Find-Replace-tp4706922p4706939.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode