Notifications
Clear all

grep search

7 Posts
5 Users
0 Reactions
1,026 Views
(@rbchound)
Active Member
Joined: 19 years ago
Posts: 8
Topic starter  

I am trying to perform a grep search with the word "chase", but I keep getting thousands of hits like "purchase". How do I write the grep expression to for the word "chase" only? I would need a space before and after the word.

Assistance would be greatly appreciated.


   
Quote
(@rich2005)
Honorable Member
Joined: 19 years ago
Posts: 541
 

Couple of simple ones for that i'd use in encase would be
[^U]chase (ie any occurance of chase, thats not preceeded by u - to prevent hits of purchase)
or
[^A-Z]chase[^A-Z] (any occurance of chase without the letters a to z immediately before or after it)
Rich


   
ReplyQuote
steve862
(@steve862)
Estimable Member
Joined: 19 years ago
Posts: 194
 

Hi,

Even simpler would be to put in the space before and after the word so you'd use " chase " as opposed to "chase". EnCase will treat the space as a space.

Rich2005's answer is cleverer though, if you want to look at the results you have got and just exclude what might be just 2 or 3 common irrelevant hits.

Steve


   
ReplyQuote
(@rbchound)
Active Member
Joined: 19 years ago
Posts: 8
Topic starter  

Thanks for the feedback I will give your recommendations a try.

I did some searching on google and also found "[ ]chase".


   
ReplyQuote
(@rich2005)
Honorable Member
Joined: 19 years ago
Posts: 541
 

And noticing that im a complete idiot, i spazzed up the first grep. Which should have been [^R]chase (as r is the letter before c in purchase!) roll
Going through about a bazillion videos today and my mind has turned to mush ?


   
ReplyQuote
mark777
(@mark777)
Estimable Member
Joined: 21 years ago
Posts: 101
 

Fair to say that any one in this game whose mind doesn't turn to mush at least once a week is not doing much work. D D D


   
ReplyQuote
(@richigee)
New Member
Joined: 18 years ago
Posts: 1
 

You can also do ( Chase )
Put a space in the paren's before and after word.


   
ReplyQuote
Share: