i had a similar question here that I was able to solve.
What I need is if a string contains word X, select only word Y.
I want to be able to say, if this string contains "azureStorage", then select, "mystorage"
<add name="azureStorage" connectionString="DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=myKey" />
The closest thing I have is this regex, which works on regex101 but not in c#.
(?<=(azureStorage)...................................................AccountName=).[^;]*
Clearly this is not a good solution.