Wasn't sure about the need for "+". The dictionary entry for replaceText says it replaces all instances of strings that match the regex.
On Wed, Mar 30, 2016 at 12:33 PM Roger Eller <roger.e.el...@sealedair.com> wrote: > *put* replaceText(fld 1, "[^0-9]+", space) into fld 2 > > > > On Wed, Mar 30, 2016 at 3:14 PM, Dr. Hawkins <doch...@gmail.com> wrote: > > > I'm trying to filter a string to change everything but digits to spaces. > > > > It would seem that > > > > > > replaceText("ab26 <tab>g9", "^\d",space) > > > > > > should produce " 26 9", but for the live of me, I can't get ^ to work > in > > any context. > > > > I've even tried playing with the regex builder plugin, with no success. > > > > Am I missing something simple (again)? > > > > thanks > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > 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 > > > _______________________________________________ > 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 > _______________________________________________ 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