extracting lines with multiple word choices...

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

extracting lines with multiple word choices...

Postby ezinestein » 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

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

Re: extracting lines with multiple word choices...

Postby ezinestein » Mon Jul 14, 2008 5:11 am

I guess this can't be done?

Thx,
ed

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

Re: extracting lines with multiple word choices...

Postby DataMystic Support » Tue Jul 15, 2008 8:48 am

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
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest