Regular expressions - detecting whitespace

Gordon Tillman got at mindspring.com
Wed Aug 13 15:02:00 EDT 2003


Hi Jim,

>   What kind of regular expression can I use to detect if a string is 
> entirely whitespace (space, tab, or return)?  I tried "^([\s|\t|\n]*)" 
> but that didn't work.

Try this:

answer matchtext( your_field_reference, "^[\s\t\n]+$" )

--gordy




More information about the use-livecode mailing list