I want to split the string "about {pro} problem {statement}"
< P> I want to get the output this {pro} of {problem}
you can try:
([^ {] + | {[^}] *})
It matches each group of characters that are either defined:
- The sequence of characters (at least one), of which none
{
; Or - a
{
character, which is not}
than any number of characters, then all}
No comments:
Post a Comment