How to check if a string contains only [numbers OR special characters] in python
<p>I want to differentiate between two python strings <code>2015-07-01</code> and <code>2015-Jul-01</code></p>
<blockquote>
<p>Case 1: Digits <code>OR</code> Special characters</p>
<p>Case 2: Everything else (characters)</p>
</blockquote>
<p>I'm aware of the <code>isdigit()</code> function but it only recognized digits and not special characters.</p>
<p>By special characters I mean hyphen - or slash /</p>