JSVerbalExpressions
common-regex
JSVerbalExpressions | common-regex | |
---|---|---|
4 | 1 | |
12,167 | 0 | |
0.1% | - | |
7.8 | 10.0 | |
5 days ago | over 5 years ago | |
JavaScript | 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.
JSVerbalExpressions
-
A portable, modern regular expression language
I agree with you. I got tired of fighting with regex where I got to the point of simply not using it if at all possible.
A comment further up offered a very promising alternative.
https://github.com/VerbalExpressions/JSVerbalExpressions#tes...
It's a bit verbose, but I don't care anymore, I am too much a veteran to care about my code being sleek, I want it readable and workable.
-
Melody - A language that compiles to regular expressions and aims to be more easily readable and maintainable
There is also VerbalExpressions with a somewhat similar idea
-
Regular expressions vs Me
JSVerbalExpressions — construct regular expressions with natural language terms
-
Super-expressive – Write regex in natural language
https://github.com/VerbalExpressions/JSVerbalExpressions
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?
melody - Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
fluent-plugin-grok-parser - Fluentd's Grok parser
super-expressive - 🦜 Super Expressive is a zero-dependency JavaScript library for building regular expressions in (almost) natural language
rx - Standalone version of Emacs' rx macro
logstash-patterns - Grok patterns for parsing and structuring log messages with logstash
kbnf - KBNF has been renamed to Dogma
ocaml-re - Pure OCaml regular expressions, with support for Perl and POSIX-style strings
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!
regex - Regex to parse translator
hfst - Helsinki Finite-State Technology (library and application suite)