Page 1 of 1

extracting lines with multiple word choices...

Posted: Fri Jul 11, 2008 11:02 am
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

Re: extracting lines with multiple word choices...

Posted: Mon Jul 14, 2008 5:11 am
by ezinestein
I guess this can't be done?

Thx,
ed

Re: extracting lines with multiple word choices...

Posted: Tue Jul 15, 2008 8:48 am
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