0

What should be regex to OPTION

I am using this

<SELECT name="SELECT___F14CCNYCV___31".*?>\s*?(.+)?\s*?</SELECT>

But result is Blank .. I want to use this Regex in GoLang.

Html sample having New line and spaces

HTML Sample

<SELECT name="SELECT___F14CCNYCV___31" onChange="change_option('SELECT___F14CCNYCV___31',this.options[this.selectedIndex].value)">
<OPTION value="167" >0/3 months</OPTION>
<OPTION value="169" >3/6 months</OPTION>
<OPTION value="175" >6/9 months</OPTION>
</SELECT>
Naresh
  • 2,761
  • 10
  • 45
  • 78
  • 5
    Parsing HTML with regular expressions is hard to impossible. Maybe using golang.org/x/net/html to parse the HTML would be a) easier and b) more robust? – Volker Sep 10 '15 at 08:44
  • 5
    http://stackoverflow.com/a/1732454/532430 – thwd Sep 10 '15 at 09:00

0 Answers0