grex
pomsky
grex | pomsky | |
---|---|---|
27 | 19 | |
7,325 | 1,289 | |
- | 0.5% | |
8.1 | 8.0 | |
7 days ago | 3 days ago | |
Rust | Rust | |
Apache License 2.0 | 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.
grex
- grex 1.0.0 - Generate regular expressions from user-provided test cases
- Generating regex pattern automatically
-
Regex generator
Sounds like you're looking for something like grex. Mind you, this does not save you from learning about regular expressions. It‘s more of a supporting tool.
- When you have a problem and solve it using RegEx, you end up with two problems
-
Gnarly Learnings from August 2022
grex-js
- Grex – Generate regular expressions from test cases
-
grex 1.4.0 - Generate regular expressions from user-provided test cases
Command-line tool and Rust library: https://github.com/pemistahl/grex
- Regex finder
-
RegExr: Learn, Build and Test Regex
If I understood what you mean, then yes, I bout one https://regex.help/ (powered by https://github.com/pemistahl/grex doing the heavy lifting).
- grex is a library as well as a command-line utility that is meant to simplify the often complicated and tedious task of creating regular expressions. It does so by automatically generating a single regular expression from user-provided test cases.
pomsky
-
How to call from Rust into JS, Java, C#, Ruby and Python?
I started with JS, and my first step was to write a simple script that checks if a regex is valid. I can call this script from Rust, but there's a problem: Starting a nodejs process takes about 100ms, which is not acceptable, especially for fuzzing.
-
How do you guard against stack overflows
I noticed this when a test case of a parser I wrote failed in CI on Windows. I then learned that the default stack size on Windows is only 1 MiB whereas its 8 MiB on Linux if I remember correctly. The parser has a hard-coded recursion limit to prevent stack overflows, which is currently set to 128. However, this limit is lower than necessary on Linux, and might still be too high for some platforms (embedded?)
-
I have to rename Rulex
I was informed that Rulex is a registered trademark and I'm not allowed to use the name for my project. A lawyer contacted me and gave me a week to rename the project, so I have to come up with a different name :(
-
Melody 0.18 (a sane alternative to regular expressions)
In the other discussion, there's also a link to Rulex, which has similar goals but is more concise. Also claims to compile to multiple regex dialects.
-
Fuzzing rust-minidump at Mozilla for Embarrassment and Crashes – Part 2
Something similar happened to me a week ago. Someone emailed me that they found panics in rulex, and then created a PR to fix them. They even explained to me how to create a security advisory on GitHub because the panics could be used to DoS someone. It was very helpful.
-
Where would you put Error enums?
Sorry for not being more specific. Since this is a parser, the span points into the text file that is being parsed, so it's not that relevant for most libraries. Here is the parser, it uses nom parser combinators. Unfortunately, and adding the spans to the errors involves some boilerplate.
-
rulex VS melody - a user suggested alternative
2 projects | 19 Jun 2022
-
Any active open source repos built using Rust that need development ?
I welcome contributions for rulex. It's a medium-sized project that should be fairly easy to understand, and has some "good first issues" :)
-
Hacker News top posts: Jun 10, 2022
Rulex – A new, portable, regular expression language\ (102 comments)
- Rulex – A new, portable, regular expression language
What are some alternatives?
yaegi - Yaegi is Another Elegant Go Interpreter
melody - Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
rust-csv - A CSV parser for Rust, with Serde support.
sd - Intuitive find & replace CLI (sed alternative)
codetour - VS Code extension that allows you to record and play back guided tours of codebases, directly within the editor.
regex-automata - A low level regular expression library that uses deterministic finite automata.
parallel-disk-usage - Highly parallelized, blazing fast directory tree analyzer
taffy - A high performance rust-powered UI layout library
rust-iptables - Rust bindings for iptables
kleenexp - modern regular expression syntax everywhere with a painless upgrade path
percol - adds flavor of interactive filtering to the traditional pipe concept of UNIX shell
mirrord - Connect your local process and your cloud environment, and run local code in cloud conditions.