trim of extra character from the dropdown box
<p>I have one text box in the User Interface where in user is asked to key in some input , which in turn i am saving in database , which finally i have to show in the dynamically populated dropdown list . since the user can type in any ways in the text box as in </p>

<ol>
<li>XXXXXX</li>
<li><p>XXXXXX
or </p>

<p>1.XXXXXX ,2. XXXXXXX</p></li>
</ol>

<p>or 
  XXXXXXXXX,  XXXXXXXX</p>

<p>but i want to just get the value of these so that i can show just text value in my dropdown .</p>

<p>Can someone help in parsing this stuff.</p>
