Allowing to use dash as word separator for more than two segments

The previous version of this method, we could only use dash for the first two segments. Using dash on the third segment on, would cause an error.
It came to me when I tried to reach a method within my admin area:
www.site.com/admin/controller/method-dash
1st segment: admin (admin is a dir within controller folder)
2nd segment: controller
3rd segment: method-dash

So now, in this file, you can change the number of segments it will allow to use dash as separator.