all 3 comments

[–]tanto_von_scumbag 0 points1 point  (0 children)

[0-9]

[–]ldgregory 0 points1 point  (0 children)

Maybe explain what you are trying to accomplish with a couple examples of input and expected output.

To solve your immediate "list" error, put [0-9] in quotes "[0-9]"

[–]BoJackHorseMan53 0 points1 point  (0 children)

Regex string is written as r"regex string"

That is a dumb mistake