Regex for validating path : <p>How do I write a regex that passes for below conditions in C#</p>

<p>\segment\segment\   </p>

<p>a) each segment starts and ends with a backslash</p>

<p>b) segment can be alpha-numeric with dashes, underscore and period allowed (e.g. \some-name\some.other_name\ )</p>

<p>c) the sequence can repeat max 100 times (basically only 100 segments allowed)</p>
