I try to find a part of a search word in a string variable with regular expression.
Here is the string variable content :
string s_Var = "[ Object[Key='o_Module.Id'].Text ]"
[, ], ‘, ‘, and . always there , but not Key=, Object and Text. (Can be different). I want to determine the part between ‘ and ‘ like ‘o_Module.Id’
I only want to take the part between ‘ and ‘
Can you help me to determine the pattern i need ?
Exemple :
string s_Original_Text = "[ Object[Key='o_Module.Id'].Text ]"
? = i don’t know the value can be
[ ?[??’o_Module.?].? ]
try this code: