0
key1 = value1
key2 =   value2
key3  =   value3

key value pair in one or more lines. Tried (\w+)\s{0,}=\s{0,}(("(.+?)")|(.+?)(?=\s|$))

spiderman
  • 337
  • 1
  • 3
  • 10
  • This is discussed here - https://stackoverflow.com/questions/168171/regular-expression-for-parsing-name-value-pairs OR https://stackoverflow.com/questions/28131004/regex-to-extract-key-value-pairs-separated-by-space-with-space-in-values – Batgirl Jul 12 '17 at 00:40
  • 2
    Try something like find all using `(\S*)\s*=\s*(\S*)` –  Jul 12 '17 at 00:53
  • This works only for single input (key1 = value1) and not working for more than one input (every key = value in the separate(new) line) – spiderman Jul 12 '17 at 03:23

0 Answers0