i want to write a line of code that could extract a text ending with the character " - "
example
flower - // the out put i want is also flower
in this text file there may be a lot text written in different formats, but i only want to extract the word ending with " - " as shown above..
some one please provide me with the code