Question about subexpressions
Hi,
I would like to identify a region of a page, then use subexpressions to extract informtion. The problem I'm running into is that the only way to identify reliably the beginning of the first subexpression, or cometimes the ending of the last, is to use the same beginning and ending expressions used to identify the page region in the first place.
Is there some way to have all the matched text from the main expression, rather than only the text in between the beginning and ending patterns, passed to the subexpressions for parsing?
Thanks.
Question about subexpressions
Thanks for the suggestions. I think the idea of multiple extractor patterns will do the trick.
Question about subexpressions
Hi,
If I understand correctly what you're describing, I believe the answer would be that it isn't possible. Whatever the ~@DATARECORD@~ token matches is what will be made available to sub-extractor patterns.
If the region you're wanting to extract from covers most of the page you might consider simply creating multiple extractor patterns to get the data, rather than using sub-extractor patterns. Also, would it be viable to simply have the ~@DATARECORD@~ token cover the entire page? Maybe something like this:
<html>~@DATARECORD@~</html>
If none of that helps, is there a chance you could include the URL to the page so that I could take a closer look?
Kind regards,
Todd Wilson