I would use a regex.