extracting lines with multiple word choices...
Posted: Fri Jul 11, 2008 11:02 am
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
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