import re
p = re.compile("[0-9]*(?:\\.[0-9]+)?[^0-9]*D\\([MW]\\)\\s*US")
test_str = "9.5 D(M) US"
print re.search(p, test_str).group()