| Crates.io | pomsky |
| lib.rs | pomsky |
| version | 0.12.0 |
| created_at | 2022-07-04 18:33:46.447517+00 |
| updated_at | 2025-11-08 10:11:29.63029+00 |
| description | A new regular expression language |
| homepage | https://pomsky-lang.org |
| repository | https://github.com/pomsky-lang/pomsky |
| max_upload_size | |
| id | 619119 |
| size | 207,092 |
To begin, check out the website.
Read the blog or the changelog to learn about new features.
You can install Pomsky by...
@pomsky-lang/cli NPM module globallypomsky-bin AUR packageSee the releases page for instructions.
Ensure you have a recent Rust toolchain installed. Instructions for how to install Rust can be found here. Then run
cargo install pomsky-bin
Pomsky is currently compatible with PCRE, JavaScript, Java, .NET, Python, Ruby, Rust, and RE2. The regex flavor must be specified during compilation, so Pomsky can ensure that the produced regex works as desired on the targeted regex engine.
Note: You should enable Unicode support in your regex engine, if it isn't enabled by default. This is explained here.
There are a few situations where Pomsky expressions are not portable, explained here.
Never compile or execute an untrusted Pomsky expression on your critical infrastructure. This may make you vulnerable for denial of service attacks, like the Billion Laughs attack.
Pomsky looks for mistakes and displays helpful diagnostics:
I wrote an in-depth comparison with similar projects, which you can find here.
The Code of Conduct can be found here.
You can contribute by using Pomsky and providing feedback. If you find a bug or have a question, please create an issue.
I also gladly accept code contributions. More information
Dual-licensed under the MIT license or the Apache 2.0 license.