How do I write a regex that passes for below conditions in C#
\segment\segment\
a) each segment starts and ends with a backslash
b) segment can be alpha-numeric with dashes, underscore and period allowed (e.g. \some-name\some.other_name\ )
c) the sequence can repeat max 100 times (basically only 100 segments allowed)