There are texts like:
keyOne: "Lorem ipsum" keyTwo: "Lorem ipsum" and:
keyOne: "Lorem ipsum" "dolor \"sit amet\", " "consectetur adipiscing elit" keyTwo: "Lorem ipsum" If in the first case it is easy to get the key: value pair on the basis of \/"$\ , then in the second case there is only one way out - to find a match with one of the keys (fixed limited set). The question is how to add the restriction to the entry of keys in the pattern \(?<key>(keyOne|keyTwo))[\s*](?<value>[\"][[:print:]\s]*[\"]$)?\ to get in the second case the keyOne key keyOne
"Lorem ipsum" "dolor sit amet, " "consectetur adipiscing elit" ?