This could use `str.startswith()` instead of a regex.