Skip to content

Instantly share code, notes, and snippets.

@wflanagan
Last active October 6, 2016 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wflanagan/b5be55207dad624e20d9ca2963e140b2 to your computer and use it in GitHub Desktop.
Save wflanagan/b5be55207dad624e20d9ca2963e140b2 to your computer and use it in GitHub Desktop.
test_string = "key=1 key2=keys2 message=this is a message that is a long message key3=key key4=four"
# candidate regex (\w+)=(\w+) but it misses beyond the this in the message attribute
# what I want
# [['key', '1'], ['key2', 'keys2'], ['message', 'this is a message that is a long message'],['key3', 'key'],['key4', 'four']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment