Check whether a string contains / (forward slash) or \ (backward slash) using regex
<p>How can I find the string, that contains / (forward slash) or \ (backward slash) or both using Regexp?</p>

<p>Ex. I have following array <code>['ABC', 'abc/sd', dsa\adf', as/\sfd', ball, cat]</code></p>

<p>then it will return only those strings that contain slash.</p>