Thanks. Worked for me :)
----- Original Message ---- From: Josh McDonald <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, August 20, 2008 7:40:48 PM Subject: Re: [flexcoders] regexp problem Try var regex : RegExp = /\d{2}\/\d{2} \/\d{4}/; On Thu, Aug 21, 2008 at 9:35 AM, ibo <[EMAIL PROTECTED] com> wrote: Hi guys, this might be a trivial prob but Im having problem with regexp pattern. This wont compile: var singleDatePattern: RegExp = \d{2}(/)\d{2} (/)\d{4}; I've tried this: var singleDatePattern: RegExp = new RegExp("/\d{2}(/)\d{ 2}(/)\d{4} /"); but it wont match against the string "08/20/2008". returns false. I've tried the pattern on http://gskinner. com/RegExr/ and is confirmed to be correct. What am I missing? -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] com