Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extract part of a string between two particular characters.
#1
Solved: 10 Years, 8 Months, 2 Weeks ago
Hi, I have taken the outerhtml of a dropdown present on my webpage, which has 14 questions. now I need to split the questions and take the ubound of the array to count the no of questions present. so I think in the below outerhtml I would need to extract the string between > and ?. how to go about it?/ please help.

Code:
<ul><li role="option" class="x-boundlist-item"><div id="ext-gen1100" class="uw-combo-option">What is the first name of your oldest nephew?</div></li><li role="option" class="x-boundlist-item x-boundlist-selected"><div id="ext-gen1099" class="uw-combo-option">What is the first name of the best man at your wedding?</div></li><li role="option" class="x-boundlist-item"><div id="ext-gen1098" class="uw-combo-option">What was the first name of your first boyfriend/girlfriend?</div></li><li role="option" class="x-boundlist-item"><div id="ext-gen1091" class="uw-combo-option">What was the first name of your first manager? (Enter full name of only)?</div></li></ul>
Reply


Messages In This Thread
How to extract part of a string between two particular characters. - by ACCBAJPA - 08-14-2013, 04:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to extract particular digit from a string amit25007 3 3,281 10-05-2016, 10:49 AM
Last Post: Ankur
  Spaces and special characters in datatable headings anthony1carr 2 4,009 10-21-2013, 08:33 PM
Last Post: anthony1carr
  Removing ASCII Control Characters from a file Nithin 0 5,506 09-30-2013, 11:45 PM
Last Post: Nithin
Exclamation Retrieve the complete height and width of a browser beyond the visible part as wel learnQtptips 0 2,017 05-22-2013, 09:36 AM
Last Post: learnQtptips
  XML Data read and extract output in an array SweetyChowdhury 9 7,369 05-10-2013, 03:05 PM
Last Post: SweetyChowdhury

Forum Jump:


Users browsing this thread: 1 Guest(s)