Why not just use a regex?