path shortening

regular expressions

Shortening Long File Paths

We're working on a little shell utility that displays paths in a menu. Some of these paths can get rather long, so I cooked up this little regular expression to shorten them. It's a replacement, so you call it like this: static string PathShortener(string path)

By Jeff Atwood ·
Comments