Re: [flexcoders] Re: RegExpValidator Not working with code-behind - SOLVED

2009-09-04 Thread Jon Gunnip
Thanks for posting your solution. By the way, I also was able to get my regex to work from ActionScript by storing as a String and similarly escaping the curly braces with a backslash. The expression attribute on mx:RegExpValidator is expecting a String, so attempting to store in ActionScript as

[flexcoders] Re: RegExpValidator Not working with code-behind - SOLVED

2009-08-31 Thread gtb104
The solution was to declare the regexp in the mxml, escaping the { and } characters. Once I did that, it worked as expected. mx:RegExpValidator id=ipValidator expression=/^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$/ source={tiIPAddress}