RE: [Flashcoders] E4X, regexp and user input

2008-07-18 Thread Merrill, Jason
sted in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Wagner Amaral >>Sent: Friday, July 18, 20

Re: [Flashcoders] E4X, regexp and user input

2008-07-18 Thread Wagner Amaral
That would be: var re:RegExp = new RegExp("^" + userString); _siteXML..*.( re.test( attribute("name"))); Note: I simplified the regex a little bit. The .* at the end is redundant, and I removed the [] because /^New/ is different than /^[New]/ and the first seems more like what you want. The first