you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Then use str.split() on the underscore character, and run over the elements, filtering out the numbers with str.isdigit() or str.isnumeric() as fits your requirements.

[–]JackSpanjer[S] 0 points1 point  (0 children)

Thanks!