KNOWLEDGE BASE ARTICLE

How do I extract a single line in a block of text?

The smart seek and intelligent seek functions in Umango Extract are very powerful tools in locating and extracting exactly the right piece of information within a document that may not be located consistently.

To extract a single line of text within a block of text, we can use a regular expression within the smart seek configuration. We change the expression slightly depending on which line we require. Here are some examples:

1st Line
REGEX(.*\n)

2nd Line
REGEX(\n.*\n)

3rd Line
REGEX((?<=\n.*\n).*)

4th Line
REGEX((?<=\n.*\n.*\n).*)

For the 5th line etc...just add "\n.*" for each additional line

Link to this article http://umango.com/KB?article=65