Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there any easy method for splitting text in VB.NET?
    primarykey
    data
    text
    <p>Is there any easy method for splitting text in VB.NET? (using a start and end string to grab whats in between?)</p> <p>I do this all the time in JScript with the following:</p> <blockquote> <pre><code>&lt;junk&gt; &lt;blah&gt; &lt;data&gt;someData1&lt;/data&gt; &lt;data&gt;someData2&lt;/data&gt; &lt;data&gt;someData3&lt;/data&gt; &lt;/blah&gt; &lt;/junk&gt; </code></pre> </blockquote> <pre><code>var data = string.split('&lt;data&gt;')[1].split('&lt;/data&gt;')[0]; </code></pre> <p>would give me "someData1" by changing the [1] index to [2] would give me "someData2" very easy</p> <p>for some reason this seems to be very difficult to achieve in VB.NET.</p> <p>Here is a chunk of the actual HTML I'm dealing with:</p> <pre><code>&lt;...malformed html&gt; &lt;div style='font-size:10pt;font-family:Times;color:#000000;position:absolute;top:2731.068;left:48'&gt;Total&lt;/div&gt; &lt;div style='font-size:10pt;font-family:Times;color:#000000;position:absolute;top:2731.068;left:346.2141'&gt;18,072.59&lt;/div&gt; &lt;div style='font-size:10pt;font-family:Times;color:#000000;position:absolute;top:2731.068;left:444.3433'&gt;100.00%&lt;/div&gt; &lt;div style='font-size:10pt;font-family:Times;color:#000000;position:absolute;top:2731.068;left:567.1293'&gt;21,687.11&lt;/div&gt; &lt;div style='font-size:10pt;font-family:Times;color:#000000;position:absolute;top:2731.068;left:666.3433'&gt;100.00%&lt;/div&gt; &lt;malformed html...&gt; </code></pre> <p>I need to find the &lt;div>Total&lt;/div> index then grab the data between the 1st and 3rd divs after that.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload