Get values between curly braces c#

前端 未结 3 1831
无人共我
无人共我 2020-12-11 04:27

I never used regex before. I was abel to see similar questions in forum but not exactly what im looking for

I have a string like following. need to get the values be

3条回答
  •  轮回少年
    2020-12-11 04:44

    Is using regex a must? In this particular example I would write:

    s.Split(new char[] { '{', '}' }, StringSplitOptions.RemoveEmptyEntries)
    

提交回复
热议问题