I have a configuration file that contains a list of keywords. Following each keyword is a block that contains one or more values, each of which is surrounded by quotes. For example:
SrcDir { "D:\Temp\Input\" }
WorkDir { "D:\Temp\Work\" }
Folders {
"Standard Color Workflow"
"Normal"
"Fast"
}
I am trying to write a regular expression that will return as a capture group the keyword and then a list of its corresponding value(s).
I started out using ([\w]+)\s\{([^}\n]+)}\n
but it obviously doesn't work on the Folders section of the above sample, nor can this regex return multiple values even if they're all on the same line.
Any help with this would be greatly appreciated.