Extractor pattern to "end of line"

Question:

Say the HTML is this:

And you extracted:

And you needed to get "foo" -- your subextraction would start with that leading ">" but you don't have anything to end on.. Such as:

>~@MYVALUE@~

.. ? Assume you're locked into that pattern -- is there a way within an extraction pattern to say "and everything else left in this chunk?" If you just leave it blank it does not seem to pick it up..

Answer:

Go to the token edit for "MYVALUE" and go to the regular expression tab. Enter:

.*$

into the expression box and Voila!

(this was something that stumped me for quite some time, wanted to share the love..)

Extractor pattern to "end of line"

I just took it a step further.

By using

^.*$

for an extractor pattern that ONLY contains ~@DATARECORD@~ and NOTHING else, it captures everything in one field.

I'm using it in an instance where I want a bunch of subextractors on a pattern called from a script. If that makes sense.

Anyway, works great in this case!

foo