How can i search for more than one word - with words between

Tool for Search and Replace across multiple files.
Post Reply
Sahkan
Posts: 2
Joined: Thu Feb 13, 2014 5:22 pm

How can i search for more than one word - with words between

Post by Sahkan »

Take for example in google search, if it doesn't have the exact match it will find something that has your search words within .

Examle :
search for : hey how
found : hey man, how are you doing ?

you can compare the normal search in TextCrawler to search that google makes if you type it with quotation marks, like : "Hey how" .

So how i make it to search like google normal search ? and it would be even better to limit these words into one line, so it wont find let's say :

hey man
how are you doing

But will found :

hey man, how are you doing ?
User avatar
DigitalVolcano
Site Admin
Posts: 1729
Joined: Thu Jun 09, 2011 10:04 am

Re: How can i search for more than one word - with words bet

Post by DigitalVolcano »

You can do this using the regular expression tab.

Try this:

Regular expression:

Code: Select all

hey .*? how

Use the 'Dot matches newline' option to match over more than one line.
enigma1964
Posts: 2
Joined: Mon Feb 24, 2014 8:03 am

Re: How can i search for more than one word - with words bet

Post by enigma1964 »

Hello,

Almost the same question.
I have a Gedcom-file:

1 _NEW
2 TYPE 1
2 DATE 7 APR 2013
3 TIME 05:15:03
1 CHAN

I want to remove the lines

1 _NEW
2 TYPE 1
2 DATE 7 APR 2013
3 TIME 05:15:03

I have tried to search using the regular expression 1 _NEW .*? 1 CHAN (all options)

Nothing is found.
What am I doing wrong?
User avatar
DigitalVolcano
Site Admin
Posts: 1729
Joined: Thu Jun 09, 2011 10:04 am

Re: How can i search for more than one word - with words bet

Post by DigitalVolcano »

It works if you don't put the spaces in:

Code: Select all

1 _NEW.*?1 CHAN
Note if you replace this with nothing you'll lose the "1 CHAN" as well - you'll need to have 1 CHAN as the replace phrase.
enigma1964
Posts: 2
Joined: Mon Feb 24, 2014 8:03 am

Re: How can i search for more than one word - with words bet

Post by enigma1964 »

It worked

Thanks
Sahkan
Posts: 2
Joined: Thu Feb 13, 2014 5:22 pm

Re: How can i search for more than one word - with words bet

Post by Sahkan »

Thanks, tried some of that right now and it seems to be what i was looking for :)
Post Reply