a nicer sol with regex
sol of q125