I just plugged it into RegExr <http://www.regexr.com> and I can't make sense
of it.

Try using that tool to build it. It really helps


On Fri, Mar 11, 2011 at 5:56 AM, Karim Beyrouti <ka...@kurst.co.uk> wrote:

> 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
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to