How to extract Particular text between values using Regex

Hi all, I need to extract between the text

S:{
“d”:“Test”,
“V”:“0”
}
test;
I need to extract text from s to } Help me get the values

HI @Buvaneshwaran_R

How about this expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?s)S(.*?)}").Tostring

image

Regards
Gokul

HI,

FYI, another pattern:

image

System.Text.RegularExpressions.Regex.Match(yourString,"S[^}]+}").Value

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.