in reply to a regex question

When you're building a regex, it pays to be very specific about the data you're expecting. So if your example says:

then you can build a regex to match a key:val pair pretty easily:
# NOTE: untested /(\w+)= # key (?: # match either value: "([^"]+)" | # quoted string or... (\w+)) # non-quoted value /xg

--
F o x t r o t U n i f o r m
Found a typo in this node? /msg me
% man 3 strfry