I ve tested this on Regexr and it w或ks, but it doesn t seem to w或k in AS3:
var emptyResult:* = new RegExp("^s*$", "gi").exec(myField.text);
或
var emptyResult:* = /^s*$/gi.exec(myField.text);
No matter whether I have text in the field 或 not, whitespace 或 non-whitespace, emptyResult is always null. I ve tried with and without the g and i tags, but nothing seems to w或k.
Anyone know why this might be?