Easy GREP Examples

Analysis

There are three main working windows in Easy GREP, file list, source viewer and match list.

Get IP addresses from log files

Website log files are written in txt format, so without a professional log analysis tool we can also get some information we need by this GREP tool by analyze the text of log files. Here shows an example of getting IP addresses.

  1. Open the folder containing your log files, then all log files will be listed.
  2. Open RegAssistant and select IP address from presets, then click OK, the Regular Expression will be shown in the input box.
  3. Press F3 or click button Find, then the count of IP addresses in neach log file will be listed in the Matches column.
  4. Click any file in the list, the source code with highlighted IP addresses  will be shown in the second window and all IP adresses in the selected file will be listed in the third window.
  5. Now you can scroll the source code window or click any item in the matches window to get to any IP address in the log file.
  6. If you need, you can click Export/Extract (Ex) button to export all IP addresses in all files into a file, in text,html, or xml. 

This picture shows all IP adressed were listed out.

 

Literature Analysis

Von Loon is a famous author in the field of culture and history. I like reading his book very much, especially the Story of Mankind . In his book, I found a very interesting writing style of Von Loon, the series of "and". You see, in the snapshot below, a part of the book was opened as text, and I input a regular expression, then all his style of many "and" serires were highlighted, and in the matches list you can see what he joined with "and" .


This picture shows Von Loon's "and"  in his book 'The Stroy of Mankind' was extracted by GREP1.1