Hello lovely list...I am trying to run a RegExp pattern on a String, and am not 
too sure why it's not working, and am not too sure why.
Here is the code:

var tStr        : String        = '/a:"value" -big="this" -test:123 -test2=th_3'
var r           : RegExp        = new RegExp( 
'(?:\s*)(?<=[-|/])(?<name>\w*)[:|=]("((?<value>.*?)(?<!\\)")|(?<value>[\w]*))');
var result      : Object        = r.exec( str );

result returns null... Maybe you can shed some light on what i am doing wrong 
here?
 
Thanks...


Karim

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to