--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.
You are used wrong quantificator -- empty string will be valid folder name. :)
You may use {1,}
var regexp:RegExp;
var string:String;
regexp = /^[^\\\/:*?"<>|]{1,}$/g; // unicode folder name
string = 'EH\'46u4 6y4y6 ХШЩзшщртіЇ'; // valid unicode folder name
trace(string.match(regexp));
regexp = /^[\w\s ']{1,}$/g; // non-unicode folder name
string = 'EH\'46u4 6y4y6 ';
trace(string.match(regexp));
output:
EH'46u4 6y4y6 ХШЩзшщртіЇ
EH'46u4 6y4y6
> For validating the folder names, you may use-
> ^([a-zA-Z0-9][^*/><?\|:]*)$
--
Oleg Galaburda
http://blog.actualwave.com/
http://jsinterface.googlecode.com/
http://guibuilder.org/
--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.