I\'m trying to match number with regular expression like:
34-7878-3523-4233
with this:
^[0-9][0-9-]*-[0-9-]*[0-9]$ <
^[0-9][0-9-]*-[0-9-]*[0-9]$
See it in action: Regexr.com
^[0-9]+(-[0-9]+)+$
1-2 1-2-3
1 1- 1-2- 1-2----3 1---3