I have a string that and I am trying to extract the characters before the quote.
Example is extract the 14 from 14\' - €14.99
I
try this
str.substring(0,str.indexOf("'"));