st2 ObjectName 12394 20 20 19 31 123 97 109 61 49 125 48 48 50 49 48 5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
st2="[[(ObjectName(1.3.6.1.4.1.12394.1.20.3.20.19.1.2.31.123.97.109.61.49.125.48.48.50.49.48.55.49.68.57.49.69.54.64.119.105.109.97.120.46.116.116.107.46.114.117),
OctetString(hexValue='0021071d91e6'))],
[(ObjectName(1.3.6.1.4.1.12394.1.20.3.20.19.1.2.31.123.97.109.61.49.125.48.48.50.49.48.55.49.68.57.49.69.56.64.119.105.109.97.120.46.116.116.107.46.114.117),
OctetString(hexValue='0021071d91e8'))],
[(ObjectName(1.3.6.1.4.1.12394.1.20.3.20.19.1.2.31.123.97.109.61.49.125.48.48.50.49.48.55.49.68.57.56.69.67.64.119.105.109.97.120.46.116.116.107.46.114.117),
OctetString(hexValue='0021071d98ec'))],
[(ObjectName(1.3.6.1.4.1.12394.1.20.3.20.19.1.2.31.123.97.109.61.49.125.48.48.50.49.48.55.49.68.57.67.69.65.64.119.105.109.97.120.46.116.116.107.46.114.117),
OctetString(hexValue='0021071d9cea'))],
[(ObjectName(1.3.6.1.4.1.12394.1.20.3.20.19.1.2.31.123.97.109.61.49.125.48.48.50.49.48.55.49.68.57.67.70.52.64.119.105.109.97.120.46.116.116.107.46.114.117),
OctetString(hexValue='0021071d9cf4'))],
[(ObjectName(1.3.6.1.4.1.12394.1.20.3.20.19.1.2.31.123.97.109.61.49.125.48.48.50.49.48.55.49.68.57.67.70.54.64.119.105.109.97.120.46.116.116.107.46.114.117),
OctetString(hexValue='0021071d9cf6'))]])"
print re.findall("(1\.3\.+[\d\.]+).|00[0-9a-zA-Z]+",st2)