Skip to main content

Simple parser of a strings where would keys and values are separated by a colon(:)

Project description

A simple parser that will separate a string of would be arguments in the form of key:value
where key and value are strings separated by a colon. This should work for any number of pairs.


$ key1:value1 key2:value2 key3:this is value3

Would result in a dictionary of:

d { 'key1' : 'value1'
'key2' : 'value2'
'value3 : 'this is value3'

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page