Hi guys ,

      thanks for reply , i have tried both option but no one works.
what i exactly want is when user type folder name in textinput box , i want
to restrict him so that user is not able to insert  *   /   >  <  ?  \  | :
, character in textinput. for this i am using regular expression validator.


On Tue, Aug 24, 2010 at 2:24 PM, Олег Галабурда <[email protected]> wrote:

> Hi!
>
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
कृष्णा भगवानराव शिंदे
9028903199

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to