Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to use RegExp in Flash Forms

New Here ,
Apr 03, 2008 Apr 03, 2008
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 ??
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 12, 2008 Apr 12, 2008
var regex = new RegExp("^(2..)$");
regex.test(string);
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 13, 2008 Apr 13, 2008
Doesn't work CF response:

There is no method with the name 'RegExp'.

Thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 14, 2008 Apr 14, 2008
LATEST
> 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources