I needed to extract a part from a name where different sections were separated by a dash. In fact the name contained always five dashes.
RegEx will surely work, but I agree it makes it look more complicated than it need to be.
$SignificantPartOfName = $($NameContainingFiveDashes.Split('-')[4]).trim()
Sincerely AndreasM