Hi all,

I think I just found a bug in my player ( 9,0,60,235 debug )

------------------------

// we will do some searches over the following string
var str:String = "lalalALAlalalA";

// first regexp is declared using forward slashes ( Unicode 0041 ==
LATIN CAPITAL 'A' )
var regex1:RegExp = /\u0041/g;

// second is equivalent, but declared using the constructor ( note
that the backslash is now escaped )
var regex2:RegExp = new RegExp( "\\u0041","g" );


// OK: outputs A,A,A
trace ( str.match( regex1 ).join("," )  );

// ERROR: outputs nothing!!!
trace ( str.match( regex2 ).join("," )  );

----------------------------

Am I missing something??

Thanks,
Aldo

-- 
:::: Aldo Bucchi ::::
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi

Reply via email to