I’ll check for the fail reason. Thank you for report!

 

Regards,

Igor

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Tann
Sent: Friday, February 24, 2006 3:52 PM
To: Open Source Flash Mailing List
Subject: Re: [osflash] Regular _expression_ Class?

 

Ah Igor just the man. I have just been playing with as2lib’s regex classes as it happens but would like a pointer or two if that’s ok. I am trying to use regex to check if a password is alpha numeric, this is the code:

 

function checkPass(strPassword:String):Boolean{

var regexPassword         :Pattern             = new Pattern("[^A-Za-z0-9]");

var matchPassword        :Matcher           = new Matcher(regexPassword, strPassword);

return matchPassword.matches();

}

 

It is always returning false, im sure my syntax is wrong. Can you point me in the right direction please?

 

Jim

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor V. Sadovskiy
Sent: 24 February 2006 13:43
To: 'Open Source Flash Mailing List'
Subject: Re: [osflash] Regular _expression_ Class?

 

Hello Jim.

 

As2Lib (www.as2lib.org) has RegExp implementation.

 

Regards,

Igor

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Tann
Sent: Friday, February 24, 2006 3:33 PM
To: Open Source Flash Mailing List
Subject: [osflash] Regular _expression_ Class?

 

Hey, Does anyone have an actionscript implementation of regular expressions?

 

Jim

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to