Skip to content

Commit 001d4d7

Browse files
committed
Updated readme
1 parent 7275256 commit 001d4d7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,29 @@ This project is based on **qhexedit2**, **capstone** and **keystone** engines. N
3434
* Shortcuts for all these features
3535

3636
## Pattern Matching Engine
37-
Fhex can read a configuration file (from `~/fhex/config.json`) in JSON format with a list of regex to highlight and a comment/label to add close to the matches.
37+
Fhex can load at startup a configuration file (from `~/fhex/config.json`) in JSON format with a list of strings or bytes to highlight and a comment/label to add close to the matches.
3838

39-
Example that highlights urls with a basic regex and emails:
39+
Examples:
4040
```json
4141
{
4242
"PatternMatching":
4343
[
4444
{
45-
"regex" : "www.[a-zA-Z0-9].",
45+
"string" : "://www.",
4646
"color" : "rgba(250,200,200,50)",
4747
"message" : "Found url"
4848
},
4949
{
50-
"regex" : "[A-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Z0-9.-]+",
50+
"bytes" : "414243",
5151
"color" : "rgba(250,200,200,50)",
52-
"message" : "Found email address"
52+
"message" : "Found ABC"
5353
}
5454
]
5555
}
5656
```
5757
To activate pattern matching press `CTRL + P`
58+
At the end, Fhex will show also an offset list with all the result references.
59+
**Note:** Labels with comments are added only if the window is maximized, if labels are not displayed correctly please try to run pattern matching again.
5860

5961
## Binary Chart
6062

0 commit comments

Comments
 (0)