NSScanner, reaching the end of parsing string
<p>I have a string that's like</p>

<p>"Condition: <strong><em>some text which can have a comma in it but not always</em></strong>, Type <em><code>more text</code></em> Product: <strong><em>more text, can be NULL sometimes</em></strong></p>

<p>What I did was:</p>

<pre><code>NSString *condition = @"Condition:";
NSString *type = @", Type";
NSString *product = @"Product:";

NSScanner *scanner = [NSScanner scannerWithString:myString];

[scanner scanString:condition intoString:NULL];
[scanner scanUpToString:type intoString &amp;conditionName];
[scanner scanUpToString:type intoString:NULL];
[scanner scanUpToString:product intoString:&amp;typeName];
[scanner scanString:product intoString:NULL];
// stuck here
</code></pre>

<p>I don't know how to scan till the end of the string since scanString:intoString: takes a NSString parameter.  I wasn't sure how to put these into a while loop either to scan till the end.  Any thoughts?  Thanks.</p>
