I used your suggestion and can now iterate the NSArray. But the NSArray contains items of NSRange.
I don't know how to access each item's properties. I currently have this code
set matchRanges to (urlRegex's matchesInString:(theText) options:(0) range:({0, theText's |length|()}))'s valueForKey:("range")
set matchRangesCount to count of matchRanges
repeat with idx from 1 to matchRangesCount
set element to (matchRanges's objectAtIndex:idx)
set position to element's location
set theSize to element's length
end repeatBut the element's location and element's length properties cannot be accessed this way.
What is the proper way to access the structs members ?
Thanks,
Regards