problem related combobox nd database
i hav created a combobox and add elements to it from database . combobox contain elements lyk 1-2year,12 months,5-9years, means numeric as well as text.
but now i want to extract only numeric data from it as 1-2 year or12 months.
so plz suggest any code tht can retreive only numeric data either from combobox or database column.
Re: problem related combobox nd database
Might help to explain your problem a lot more. From what you've written I can guess that you just wish to pull out numerals from s String, which a regular expression would allow you to do
Lesson: Regular Expressions (The Java™ Tutorials > Essential Classes)
Use google and I'd bet you can find specific examples on how to use these for your problem.