Thursday, August 15, 2013

Copy/Extract HTML Drop Down List Options in Plain Text


You want to copy HTML dropdown list(combo box) options from a web-page. You do right
Extract dropdown list options using Notepad++.
Steps:
1. Open site.
2. Now you need to get HTML source of dropdown list:
3. Paste HTML source in Notepad++
4. Remove Select tag from top and bottom if exists
5. Put cursor at top of code and Press Ctrl + F
6. Go to Replace Tab and enter following info:
Find What:
<option[^>]*>([^<]*)</option>
Replace With:
\1\n
Select Regular Expression as Search Mode and click on Replace All. If options are
Already in new line then no need to use \n in Replace With option.
You will get all options in plain text. If there are a lot of options, It will save bunch of time.














1 comment:

Note: Only a member of this blog may post a comment.