Regular expressions - detecting whitespace

Dar Scott dsc at swcp.com
Wed Aug 13 14:49:01 EDT 2003


On Wednesday, August 13, 2003, at 01:33 PM, Jim Witte wrote:

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

Will this work?

"\A\s*\z"

That forces the start and end as part of the pattern.

Dar Scott





More information about the use-livecode mailing list