closes #10:  NS regex flags undefined as true. bug.