Regular Expressions in PHP

Posted by kelly on Stack Overflow See other posts from Stack Overflow or by kelly
Published on 2010-04-23T18:41:25Z Indexed on 2010/04/23 19:13 UTC
Read the original article Hit count: 264

Filed under:
|

Sorry for unclear description, my English is not good.

My problem is that I want to decode a string, and this string has nested content delimited by {}.
For example:

The string:

{any string0{any string 00{any string 000....}}}{any string1}any string.

The result I want to get:

 array[0] = {any string0{any string 00{any string 000....}}}
 array[1] = {any string1}

I hope it's clear enough.

© Stack Overflow or respective owner

Related posts about php

Related posts about regex