Regex of path not working <p>I need to create reg-ex for path like aaaa/bbb/ccc or aaa-bbb or aaa_bbb_ccc_ddd etc How should I do that ? It can contain only <strong>alpha numeric with hyphen underscore and slash</strong>. Ive tried something like this which is not working</p> <pre><code>@"^((?:/[a-zA-Z0-9]+)+/?|/?(?:[a-zA-Z0-9]+/)+)[a-zA-Z0-9]*$" </code></pre>