How do I split number string with digit pattern? I am trying to split number string to two to digit numbers 

How do I get two different Numbers out that string

Example:

I want separate two numbers

x &lt;- c("-26755.22-50150.60") 


To this 

-26755.22
-50150.60 


I have tried stringr::str_split but I din't manage to keep the digits.
I just did this-

&gt; library(stringr)
&gt; x &lt;- c("-26755.22-50150.60")
&gt; matc = "\\-[0-9]*\\.[0-9]{2}"
&gt; as.numeric(unlist(str_match_all(x, matc)))
[1] -26755.22 -50150.60


After this, you can select the numbers by using respective indexes.