Stuck On Regex (Again)
bonnmike at gmail.com
Mon Feb 23 18:01:30 CET 2015
\s replaces space with space.
\s+ does a greedy replace where it tries to replace as many of the same
token as it can at one time, so it'll grab all the consecutive whitespace
and replace it with space.
On Mon, Feb 23, 2015 at 9:48 AM, Bob Sneidar <bobsneidar at iotecdigital.com>
> Hi all.
> In a regex expression, “\s" is supposed to work for white space. Hows come
> then, given that myVar contains "Availability BatteryRechargeTime
> BatteryStatus Caption Chemistry”:
> put replaceText(myVar, "\s", space) into myVar
> leaves myVar unchanged?
> Bob S
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode