Regular expressions - detecting whitespace

Jim Witte jswitte at bloomington.in.us
Wed Aug 13 14:38:00 EDT 2003


Hi,

   Probably been answered before, I don't have time to download a 63MB 
archive over a phone line..

   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.

   BTW, if I execute 'put matchText( "this text" , "(g*)")', it returns 
true.  Certainly this is not a string of 'g's..  What am I doing wrong 
here

Jim




More information about the use-livecode mailing list