negating in a regexp

-hh hh at livecode.org
Wed Mar 30 14:55:50 EDT 2016


Dr. Hawkins 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.

Use "[^0-9]" instead of "^\d".



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/negating-in-a-regexp-tp4702810p4702811.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list