# Collection of code snippets by Arne Vajhøj 
# (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import re

s = '"url": "http://dot.something", "id": "ABCDEF", "session": "sadasd", "token": "32fdsf", "pic": "df2423", "key": "adf32c",'
print s
m = re.search('(?:"id": ")([^"]*)(?:")', s)
res = m.group(1)
print res
