hello, i have one spinner with this elemet: 1:Bicchiere di birra - Euro 5.50
i need to insert in other edittext: 1 Bicchiere di birra
without Price.
one help?
To take in account eventual dash separated names like "lemon-mint" I'd search from the end backward.
Try with "1: Fresh lemon-mint soda - Eur 7.60" to see what I mean.
Thanks Friends, i try your code, work fine, but i replace ( " - " ) with ( " Euro " ) because i have elemtns with example: 1: Fresh lemon-mint soda - Eur 7.60 good work Klaus and Good work Udg, very thanks all.
In my code, "1: Fresh lemon-mint soda - Eur 7.60" works OK, because I use the empty characters " - " before the "-" character.
But this would be wrong: "1: Fresh lemon - mint soda - Eur 7.60"
But splitting with " - Euro " is better.
You might use " - Euro " to eliminate "-".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.