It looks like you have four subfields in your samples. And it looks like you want to retain three of them when you SELECT from your table.
But that might not be true: your question calls for transforming ENPARIN 100MG/1.OML INJ 00781-3500-69 to ENPARIN 100MG/1.OML (leaving off INJ).
At any rate this gets the first three subfields delimited by space.
SUBSTRING_INDEX('WARIN 7.5MG TAB 68382-0058-01', ' ', 3);
SUBSTRING_INDEX() is a useful string function There are many others. It's worth your time to learn about them.
If you want to remove the 12345-1234-12 numbers at the end of items that have them, you can try this
SELECT REGEXP_REPLACE('WARIN 7.5MG TAB 68382-0058-01',
' [0-9]{5}-[0-9]{4}-[0-9]{2}$', '');
If you have all kinds of different layouts of these strings a large statement looking like this is in your future.
SELECT CASE WHEN something THEN something
WHEN something THEN something
WHEN something THEN something
ELSE column END
This is not going to be even a little bit fun to maintain.
If possible you would be wise to split this stuff into four columns. I know your pharma supplier probably doesn't do this for you.
id, name, amount, method, upcso each line here becomes a row in your database, and each section of the line becomes a column. Then you could easily doSELECT name, amount, method FROM medicines;.