Add regex validation to content