A regexp feels a bit heavy here, in my opinion.