bharath
bharath

Reputation: 1233

Regex result capturing in c#

Hi can someone help me with regexp to capture everything between the double quotes in the text below using c#.

$pageProcessId = "abc_def_ghi";

also the string can be

$pageProcessId="abc_def_ghi";

trying to capture abc_def_ghi basically...hope it makes sense.

thank you very much.

Upvotes: 0

Views: 218

Answers (1)

SeeSoft
SeeSoft

Reputation: 91

\"(?<InsideString>.*?)\"

InsideString is just a capture group name, you can delete it and just keep this.

\".*?\"

Upvotes: 1

Related Questions