hoschy07 - 2009-06-10

I using the code from the example code to find some values in an HTML string:   
This works fine but some users have problems with this. Because [matchEnumerator nextObject] don´t returns a string. The return value is an NSArray with some NSRange objects inside.
Where is the problem? And how can I fix it, so that I´m getting a string?

This is my code:

NSEnumerator *matchEnumerator = NULL;
    matchEnumerator = [HTMLsource matchEnumeratorWithRegex:@"<input[^>]+value=\&quot;([^>]+)\&quot;[^>]*>"];

    NSString   *matchedString = NULL;

    while((matchedString = [matchEnumerator nextObject]) != NULL) {
// some code
// here I get sometimes an NSArray and I´m expecting an string.
}