Splitting strings with slashes in C#
<p>I have the following types of strings. One with three slashes and one with two:</p>

<pre><code>a) filepath = "/F00C/Home/About"

b) filepath = "/Administration/Menus"
</code></pre>

<p>What I need to do is a function that will allow me to get the values of "home" and "administration" and put into topMenu variable and get the values of "Menus" and "About" and put this into the subMenu variable. </p>

<p>I am familiar with the function slashes = filePath.Split('/');  but my situation is not so simple as there are the two types of variables and in both cases I just need to get the last two words. </p>

<p>Is there a simple way that I could make the Split function work for both without anything to complex? </p>
