Home » c# » c# – Get substring between specific character which is after a specific character of a string-Exceptionshub

c# – Get substring between specific character which is after a specific character of a string-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I’m looking to get the substring of specific character which is after the particular character of a string.

For example

string x= "((str1 > $(var.str2)) && ($(var.str4) < str2))) || !($(var.str2 < str3))";

I want the substring “$(var.str4)”.
And the above string is dynamic one.

How to&Answers: