Hackerrank - Split the Phone Numbers

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
Splitting pattern:
\s|\-

I created solution in:

All solutions are also available on my GitHub.

Scala

Java

JavaScript

Ruby