I have strings like this ‘some-dasd\dasd-dasdas\dasdas-dasd-das\dsad‘.
I need to split the string to array by two different symbols '\' and '-', so I would like to get the array ['some', 'dasd', 'dasd', 'dasdas', 'dasdas', 'dasd', 'das' ,'dsad'].
What is the best way to do it?
should do the trick.