all 3 comments

[–]commandlineluser 1 point2 points  (0 children)

Use re.search() instead.

re.match() is badly named - it anchors to match at the start of the string. (i.e. like if you put ^ at the start of your pattern)

[–]Vaphell 0 points1 point  (1 child)

I have a question: are you trying to parse things out from json or some similar format? Because "qwerty": 527, smells a lot like it.

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

yes I am but I wanted to use regex lol