I have next string:
String a = "someThing({Some text}); OtherStuff({Other text});";
I need to get the text included in '{' and '}' inside the 'someThing({...})';
I wrote:
var data = Regex.Match(a, @"(?<=someThing\(\{).*?(?=\}\)\;)", RegexOptions.Singleline).Groups[0].Value;
But as a result in data I get the whole string 'a'. My expected result - "{Some text}"
Thanks for any advance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.