ReadableRegex.jl
common-regex
ReadableRegex.jl | common-regex | |
---|---|---|
3 | 1 | |
183 | 0 | |
- | - | |
0.0 | 10.0 | |
almost 2 years ago | over 5 years ago | |
Julia | Rust | |
MIT License | Apache License 2.0 |
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
common-regex
-
A portable, modern regular expression language
comparitor.insert("iyr", Regex::new(r"^(201[0-9]|2020)$").unwrap());
There are lots of number parsing.
I would enable both [[:1-12:]] and [[:01-12:]] as options without / with leading zeros.
About the variables:
This file would look much more readable with variables that are reusing other regexes:
https://github.com/spcan/common-regex/blob/3238bc8ee85e0e000...
What are some alternatives?
pyparsing - Python library for creating PEG parsers
fluent-plugin-grok-parser - Fluentd's Grok parser
iregex - A way to write regex with objects instead of strings.
rx - Standalone version of Emacs' rx macro
kbnf - KBNF has been renamed to Dogma
logstash-patterns - Grok patterns for parsing and structuring log messages with logstash
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!