Try this one:
\"([^\"]+)\":\"?([^\",]+)\"?

This should match all key-value pairs. Just iterate over them and choose the
ones you need.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Jan 13, 2009 at 8:01 AM, flexaustin <[email protected]> wrote:

>   pattern = new RegExp('(?<=\"name\":\").*(?=\",\"\w*:)', 'i');
> var resultArr:Array = pattern.exec(data);
>
> resultArr ends up equaling null;
>
> But if you check this: (?<=\"name\":\").*(?=\",\"\w*:) using
> http://gskinner.com/RegExr/ it says it works using this data
>
>
> "error":32,"count":47,"group":true,"connection":39,"warning":3,"name":"Workstations","title":"Workstations","model":"workstation","ticket":1,"type":"TagCategory","id":1
>
> So why is it not working in my code? If anyone has any suggestions I
> would appreciate it. I have been trying to get this to work for 10
> hours straight.
>
> TIA
>
>  
>

Reply via email to