I have dict and need to extract the value starts with '12'. I have wrote the code and working. Can help me writing the code with regex
test = {'name': 'a','num': '1234','num2':'5678', 'num3':'0142'}
[ k for k,v in test.items() if str(v).startswith('12')]
My Out
['num', 'num4']