regular express in php

Posted by kelly on Stack Overflow See other posts from Stack Overflow or by kelly
Published on 2010-04-22T19:22:58Z Indexed on 2010/04/22 19:23 UTC
Read the original article Hit count: 333

Filed under:

I have one string like {test}{test1}{test2}{test3}{test4},(the number of the {} is unknown) and I like to get the content in {} out and put them into array. How can I do this? I tried preg_match( "/({{\S}+}/)"), the result is wrong. Thanks so much for anyone's help.

© Stack Overflow or respective owner

Related posts about php