ReadableRegex.jl
logstash-patterns
ReadableRegex.jl | logstash-patterns | |
---|---|---|
3 | 4 | |
183 | 233 | |
- | 0.0% | |
0.0 | 2.1 | |
almost 2 years ago | about 1 year ago | |
Julia | Python | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ReadableRegex.jl
-
A portable, modern regular expression language
I find something like this a lot more readable:
https://github.com/jkrumbiegel/ReadableRegex.jl
It is in Julia, but if you have it installed locally it’s just a few taps away. You can even generate the regex, and use that in Python and just add the ReadableRegex in a comment nearby.
- Learn RegEx step by step, from zero to advanced
-
luna is a Domain specific language that translates to regex. It's an attempt to make regex more readable.
Looks kinda like https://github.com/jkrumbiegel/ReadableRegex.jl
logstash-patterns
- Grok filter working in online debuggers but not in actual implementation
-
A portable, modern regular expression language
Why don't languages have grok patterns in their standard libraries?
It seems to only exist in log parsing ecosystems but this really helps with getting rid of little bugs and wrong parsing of specific regex patterns.
Instead of doing "^\d+(\.\d+){3}$" for IP checking which is clearly wrong, you'd do "%{IPV4:ip}" which is so much better.
List of known patterns : https://github.com/hpcugent/logstash-patterns/blob/master/fi...
Even for PHP a third party library only has 15 stars.
-
Dissect pattern help
in case you haven't, it can be found here. https://github.com/hpcugent/logstash-patterns/blob/master/files/grok-patterns
-
Writing an effective GROK pattern
Also, some of the patterns can be referred from https://github.com/hpcugent/logstash-patterns/blob/master/files/grok-patterns I personally prefer the above link for constructing grok pattern.
What are some alternatives?
pyparsing - Python library for creating PEG parsers
logstash-patterns-core
iregex - A way to write regex with objects instead of strings.
JSVerbalExpressions - JavaScript Regular expressions made easy
rx - Standalone version of Emacs' rx macro
kbnf - KBNF has been renamed to Dogma
common-regex - Most common regex
fluent-plugin-grok-parser - Fluentd's Grok parser