RT @reuvenmlerner@twitter.com
From today's #Python class:
import re
s = 'abbcccddddeeeee'
re.findall('d{1, 4}', s)
produces
[ ]
Why? Because of the space before the 4!
I've been teaching #regexps for years, and never knew that {min,max} cared about whitespace before/after the comma.
🐦🔗: https://twitter.com/reuvenmlerner/status/1331696529715965954