Validate paths using javascript
<p>I am asking users to enter path to controller files like </p>

<pre><code>abc/cab
cde/ter/tyu
</code></pre>

<p>I am unable to validate it using </p>

<pre><code>var regexString =/^([a-zA-Z\]+)*$/;
</code></pre>

<p>Can you please help me correct this. text like <code>abc//text</code> and <code>abc/text/</code> and <code>abc/text//</code> and <code>/abc/text</code> also should return false. There should be no slash at beginning and ending also.</p>
