That didn't work for me.  :-/

- MM



> Oke, i think you can, since it matches the input given with the case.   
i didnt test it.
But cant you store the regex in a var and put that in the case?

like so:

var myRegEx:RegExp = /(W|M|K)\d/i;

var stringToMatch = "";

switch(stringToMatch) {
        case myRegEx:
                break;
}

Otherwise cant you swithc on the result of the executed regex?

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to