Last active
October 6, 2016 17:39
-
-
Save wflanagan/b5be55207dad624e20d9ca2963e140b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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