Uses regular expressions to study names