Given that you employ two separate delimiters, this is intriguing. But don't worry, you can easily use the next method to record both instances. Simply add additional delimiters between the the textbefore and textafter functions if you have any available. A sample of the equation is shown below.
=TEXTBEFORE(TEXTAFTER(A2, {"-","/"}), {"-","/"})
This should work for you then if you want to return nothing if output is less than 5.
=IF(LEN(TEXTBEFORE(TEXTAFTER(A1,{"-","/"}),{"-","/"}))>5,TEXTBEFORE(TEXTAFTER(A1,{"-","/"}),{"-","/"}),"")