I didn't know this...
Mike Bonner
bonnmike at gmail.com
Sun Dec 28 09:48:23 EST 2014
I too would prefer this way because its the livecode readable way. While
this particular one is a pretty simple regex-- put
replacetext(tNames,"(\bc)","x") it would get complicated way too fast
depending on need. A for each loop would be fine and work fast also, but I
personally wouldn't mind your idea being a feature request.
On Sat, Dec 27, 2014 at 11:44 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
> It's too bad this won't work:
>
> put "bob carol ted alice" into S
> replace "c" with "x" in char 1 of each word of S
> put S -- puts "bob xarol ted alice"
>
>
> On Sat, Dec 27, 2014 at 5:42 PM, Kay C Lan <lan.kc.macmail at gmail.com>
> wrote:
>
> > Nice :-)
> >
> > This isn't limited to variables but for works for fields as well.
> >
> > Taken the liberty of entering an Enhancement Request - 14311 - that the
> > Dictionary entry be amended to include your example and note that replace
> > can also be used on chunks within a container, not just the entire
> > container.
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list