I’m afraid I can’t help you with NSURLConnection, but if you’re running KM8, you can now use the new Get a URL action to save webpage content directly to a variable.
I need to extract several words from html content, but can’t figure out the end of line markers using regex, it doesn’t work. Example of part of content:
When I am trying to search some words, it takes too much time to filter the text since it’s huge, so I decided to to divide this text into several parts or extract specific number of lines using expression (?m)(.\n){8}(.\n){3}(.*\n){5}
but this doesn’t work, it can’t find these matches. How can I extract specific line specifying it’s number?
I imagine you would see similar results even on much longer HTML content, so I would be inclined to give this method a shot first. If you know you only want words from specific lines, I would suggest refining the regex or even using multiple ones to extract the specific text you're looking for based on context, rather than position. If you're not sure how to do so feel free to post again, but please try to be as specific as you can about what it is you're trying to accomplish (for example, what words precisely are you trying to extract? How do you want to look for them? What does the full text that you're searching this data for look like? etc.)