Skip to content

Commit

Permalink
modify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mesejo committed Apr 10, 2023
1 parent 470f89f commit 2751b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Efficient string matching with regular expressions

This package includes a pure Python function that enables you to represent a set of keywords (strings) as an efficient regular expression.
This package includes a pure Python function that enables you to represent a set of strings as a regular expression.
With this regular expression, you can perform various operations, such as replacing, extracting and matching keywords.
The name of the package comes from the internal trie used to build the regular expression (**TR**ie to **RE**ge**X**)

Expand Down Expand Up @@ -54,7 +54,7 @@ print(hits)

## Why use trrex?

- trrex builds a *better* regex pattern, than the simple regex union, therefore searching (and replacing) keywords is
- trrex builds a *better* regex pattern, than the simple regex union, therefore searching (and replacing) strings is
about 300 times faster than a regex union pattern, and about 2.5 times faster than FlashText algorithm. See below for a performance
comparison:

Expand Down

0 comments on commit 2751b43

Please sign in to comment.