--- In textpipe-discuss@yahoogroups.com, "Seven" <sevenkitten@...> wrote:
>
> I have been working on some data extraction. I am using textpipe
> pro as well as Easy pattern helper.. I need to extract two lines
> that read like this
> Sales:
> $200.12 bil
> There is the line break in it and the numbers in red are the
> variable chars.
> I can get it to pull up using the Perl pattern
> (?:Sales:)
> (?:(?:[[:digit:]!"#$%&'()*+,\-./\\:;=?@\[\]\^_`{}~|]{1,7}?))(?:
> bil) ........ which is the same as this EasyPattern
Simple. Replace line break with whitespace after "Sales:"
First filter (replace):
-Search
(Sales:)(\r\n)
-Replace with
$1[ ]
Second filter (extract matching line, or just grep)
- Match pattern
Sales:
So first filter appends next line to "Sales:" line resulting in
Sales: $120.12 bil
Second filter extracts all lines with "Sales:" in it