If I have a string "Param1=value1;Param2=value2;Param3=val3", how can I get the value between the substrings "Param2=" and the next semicolon (or end of string, whichever comes first)?"
4 Answers
0
votes
0
votes
You can use this string to place all of the values into the Matches collection of the Regex class
string regex = "Param[0-9]*?=(?<value>.*?)(;|$)"