Fixed the smart text matching regexp.