Maybe you are coming from another type of language, but you can use the "match" method.
It will  return an Array of Strings your regular expression matched.
So you could see if the output is what you intended.
Maybe my answer is obvious, if not, the Flex docs on Regular Expressions is good to look at.

[code]
    myMatches:Array=someWord.match(/re syntax here/);
[/code]

-- Keith H --


rid_b80 wrote:

Hi all,

In actionscript 3, is there any function that are able to check if the
regular expression entered has the right syntax or not.

I'm trying to make a page that allows user to define their own regular
expression and i'm just trying to make sure that the expression that
they enter is in the right format.

Thanks in advance,

Anthony


Reply via email to