Skip to main content
Participant
April 3, 2008
Question

How to use RegExp in Flash Forms

  • April 3, 2008
  • 2 replies
  • 1364 views
Hello searching for help by ActionScript StringFunction

try to do var res = string.match('^(2..)$')
allways get an undefined for 'res'

Anyone got an Idee ??
    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    April 14, 2008
    > CF response

    You said you needed help with ActionScript. What I gave you is ActionScript.

    Coldfusion has no built-in method called match. You should use REMatch(reg_expression, string) or REMatchNoCase(reg_expression, string), assuming you're on CF 8, of course.

    BKBK
    Community Expert
    Community Expert
    April 12, 2008
    var regex = new RegExp("^(2..)$");
    regex.test(string);
    aprophisAuthor
    Participant
    April 14, 2008
    Doesn't work CF response:

    There is no method with the name 'RegExp'.

    Thanks