±Forensic Focus Partners

Become an advertising partner

±Your Account


Username
Password

Forgotten password/username?

Site Members:

New Today: 0 Overall: 35868
New Yesterday: 0 Visitors: 127

±Follow Forensic Focus

Forensic Focus Facebook PageForensic Focus on TwitterForensic Focus LinkedIn GroupForensic Focus YouTube Channel

RSS feeds: News Forums Articles

±Latest Articles

±Latest Videos

±Latest Jobs

Using Regex/GREP in Axiom

Computer forensics discussion. Please ensure that your post is not better suited to one of the forums below (if it is, please post it there instead!)
Reply to topicReply to topic Printer Friendly Page
Forum FAQSearchView unanswered posts
 
  

jamesvogel
Newbie
 

Using Regex/GREP in Axiom

Post Posted: May 22, 19 15:02

I am interested in filtering columns in Magnet Axiom by excluding a word. I read that you can use the GREP expression "grep -v" to exclude a word, but I have tried this every which way with no success. Has anyone else found a way to do this?  
 
  

mcman
Senior Member
 

Re: Using Regex/GREP in Axiom

Post Posted: May 22, 19 15:18

Hey James,

AXIOM uses .NET regex which is a little different than a Unix GREP.

Here's some common regexes I use that should work for your scenario (hopefully the formatting carries over to FF):
Not null
[^()]

Not a single word - this one should work for you
^(?:(?!word).)*$

Not a word at very end
^(?:(?!Word$).)*$

Not a Word at the start of line
^(?:(?<!Word).)*$

Contains a number
[^(\D)]

Either blue or red or black
(blue|red|black)

CASE SENSITIVE
Find two words separate by X words
John\W+(?:\w+\W+){1,3}?Smith
Find two words separate by X singles
John(?:.){1,3}?Smith

CASE INSENSITIVE
Find two words separate by X words
(?i)John\W+(?:\w+\W+){1,3}?Smith
Find two words separate by X singles
(?i)John(?:.){1,3}?Smith

Hope that helps,
Jamie McQuaid
Magnet Forensics  
 
  

jamesvogel
Newbie
 

Re: Using Regex/GREP in Axiom

Post Posted: May 22, 19 15:23

That helps tremendously. Thank you!  
 
  

kastajamah
Senior Member
 

Re: Using Regex/GREP in Axiom

Post Posted: May 22, 19 17:06

If you want to test your expressions before loading them into AXIOM, you can go to rextester.com/tester.  
 

Page 1 of 1