A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Regular Expression In ActionScript

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Location
    Mamallapuram
    Posts
    4

    Lightbulb Regular Expression In ActionScript

    Hi Guys,
    I need to validate a regular expression against a string very strictly only what is there in string. But at present i don't see such a function for regular expression since bot exec and test doesn't check strictly. for example say i have regular expression for validating 43a^2b^2, but even its 43a it's returning true, as a part of string is present in reg exp. i need true only when exact match is found, is there any way achieve this?

    The code I am using at present:

    var isRegExp:Boolean = regExp.test(value1);

    Thanks in advance...

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    You can check to see if they're equal: http://help.adobe.com/en_US/as3/dev/...0204-7eef.html

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center