pomsky
RegExr
pomsky | RegExr | |
---|---|---|
19 | 579 | |
1,259 | 9,548 | |
0.2% | - | |
8.4 | 0.0 | |
3 months ago | about 1 month ago | |
Rust | JavaScript | |
Apache License 2.0 | GNU General Public License v3.0 only |
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.
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
RegExr
-
Hot Springs
When thinking about how I might compare an arrangement to the contiguous group of damaged springs, I used regexr.com to experiment with very specific regexs that used the numbers.
-
Demystifying Regular Expressions (Regex): A Chat Sheet Guide
There are plenty of online regex tools to test and experiment with regex patterns. Some popular ones include RegExr, RegEx101, and RegexPlanet.
-
Camel Cards
Using regexr.com it at least appears to work as expected.
-
[2023 Day 2] [Python] Stuck on the first task
If you are going to use RE's, use something like https://regexr.com/ to double check that they're doing what you want. I was suspicious of your 'cols = re.findall(r'\d+ .....', i)' line, and indeed it does miss some columns. You should rethink your column detection, and either not use REs or learn how to use capture groups and \w. There would then be no reason to use yet another RE in your column iterator to extract the numbers which you've already detected.
-
2023 Day 2 Part A [Java] regex pattern not matching
First time posting here, let me know if I need to edit post to conform to any rules. My issue is that I'm trying to match regex pattern to separate out the number of cubes drawn and its color but my Matcher object seems to not be returning any matches so it's throwing a no match found exception when I try to call digitMatcher.group(). I have tested my regex pattern on sites like regexr and it seems to pass there but it's not working for some reason here. I use the same type of regex on day one and it work there so I'm not sure where my regex pattern is failing here. I'm talking about specifically in my isGameValid() method where I create a matcher base on a pattern I made above. Through debugging I know that I separated the string color pairing correctly and that my Matcher object has the correct regex pattern, it's just not matching for some reason. Any help would be appreciated. Code below:
-
Trebuchet?!
Regexr has been an invaluable tool as a beginner.
-
10 Lesser-Known Tools and Websites to Spice Up Your Developer Toolbox
RegExr simplifies working with regular expressions. This online tool provides a visual interface for building and testing regex patterns in real-time, making regex less intimidating.
- What regex flavour does vscode use in language-configuration.json
-
Regex not working
Ho did you arrive at the regex? I usually use a website to , such as https://regex101.com/, https://regexr.com/, https://regex-generator.olafneumann.org/ in combination of each other, as some explain better than the other.
-
Capture the first instance, but don't stop?
I pulled this into regexr.com and it yielded the same results except it removed :41:
What are some alternatives?
melody - Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
RegEx101 - This repository is currently only used for issue tracking for www.regex101.com
grex - A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
RegExpBuilder
regex-automata - A low level regular expression library that uses deterministic finite automata.
Visual Studio Code - Visual Studio Code
kleenexp - modern regular expression syntax everywhere with a painless upgrade path
CyberChef - The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
taffy - A high performance rust-powered UI layout library
self-hosted - Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
Regexly - WYSIWYG Regex playground for those who JavaScript