This is branching from my last post here Python get info from long complicated string
The string is from a weird XML file I'm parsing
I'm wondering how I can use re to get the rgb values from this string
style="fill: rgb(100, 2, 5); fill-opacity: 1; font-family: ProjectStocksFont; font-size: 70px; font-weight: normal; font-style: normal; text-decoration: none;"
- To use them later like:
print(rgb[0], rgb[1], rgb[2])
# 100 2 5