Hi,
I am currently using c# to implement a project (previously using c++) and had a query on the response.ExtractRegExp() function.
I am having trouble extracting a list of regular expressions, i am only getting one extracted value back, however there are multiple possible matches on the web page.
For example:
[i]string regEx = “PS-[0-9]{8}-[0-9]{5}”;
ExtractionCursor cursor = new ExtractionCursor();
RegExpMatchList matchRegEx= response25.ExtractRegExp(cursor,regEx);[/i]
When I iterate through the matchRegEx list it only seems to have one value, The code sample in the c# API help suggests that this approach should populate the list with all extracted regular expression matches. Am i doing something wrong?
I could get around this by dumping the web page contents to a string and use the .NET regex functionality but wondered if i could get around this with ExtractRegExp.
Many Thanks,
Paul.