Page 1 of 1

Extract a line or multiple lines from a text

Posted: Mon Feb 04, 2013 11:08 am
by edvukass
Hi is there a way to extract a line or multiple lines from a text?

Re: Extract a line or multiple lines from a text

Posted: Mon Feb 11, 2013 5:56 pm
by webmaster
You can use text gatherers at Project -> Text Gatherers. To extract, say, the first line, you'd create a text gatherer (call it "FirstLine"), then select Add Step -> Slice. Then save it and, on your Extract action, instead of extracting the Text property, extract the JS_FirstLine property. If you want to extract, say, everything after the first line, you'd use a Regular Expression step (instead of a Slice one) with this expression:

Code: Select all

\n((.|\n)+)
And select 1 in the Group Position.