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
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}
2 matches
Mail list logo