Ok i have a random string comin from database like this
"Fruit Apple = 3 pcs"
sometime it can be
"Fruit Mangoes = 44 pcs ripe"
ok my question is how can i remove the substring starting from equal (=) character ?
like "= 3 pcs" and "44 pcs ripe"
so the result string will be
Fruit Apple
or
Fruit Mangoes
Thanks in advance..