I found some solution here:
but applying the expression to my example:
left( "Text", strpos( "Text" ,'-'))
I am getting only B3-, whereas another part of the text is gone. I need the visible label like this:
B3-24F DP &\PSP2
How can I do it?