extracting lines with multiple word choices...

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
ezinestein
Posts: 13
Joined: Sat Nov 10, 2007 11:10 am

extracting lines with multiple word choices...

Post by ezinestein »

Hello,

If I want to extract all lines that contain the words 'for' and 'wedding'... I know how to get the lines that exactly match 'for wedding' but I don't know how to get the lines that contain both of those words when they are not right next to each other.

For example... I would want to extract lines like this...

songs for wedding
('for' and 'wedding' right next to each other) I know how to do that.

how to pay for a wedding
('for' and 'wedding' separated by a word) I DON'T know how to do that.

how to pay for your daughters wedding
('for' and 'wedding' separated by more than one word) DON'T know how to do that either.

Thanks for any help.

Best,
ed
ezinestein
Posts: 13
Joined: Sat Nov 10, 2007 11:10 am

Re: extracting lines with multiple word choices...

Post by ezinestein »

I guess this can't be done?

Thx,
ed
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: extracting lines with multiple word choices...

Post by DataMystic Support »

Use this pattern for the 'Extract matching lines' filter:

Code: Select all

for.+wedding
or using an EasyPattern

Code: Select all

for[ 1 + chars ]wedding
Post Reply