First off, the disclaimer. This isn't my problem and I'm well aware it would be vastly simpler to just use the <= and >= operators. Thats not any fun however, so I'm trying to solve it with a regex.
The problem: Match a range between 1950-2050, inclusive. My attempt got me here:
but as you can easily see, it fails on 2054 and so forth. So how do I get that last digit?