Compose-regexp.js Build readable and maintainable RegExps. ReDOS begone
This is an old lib I just rejuvenated, adding support for Unicode RegExps, properly handling back-references, and taking advantage of these to create helpers that turn things that are usually too impractical to use into usable techniques. It lets you write anything you'd write with normal RegExps, but with a more readable syntax, and it lets you compose sub-expressions into larger patterns. It also provides helpers like: - `atomic()` that prevents the engine from backtracking into what you passed as argument. No more ReDOS. - `bound()` works like `\b` but for arbitrary character sets. E.g.…
What it does
In the maker’s words, at launch
This is an old lib I just rejuvenated, adding support for Unicode RegExps, properly handling back-references, and taking advantage of these to create helpers that turn things that are usually too impractical to use into usable techniques. It lets you write anything you'd write with normal RegExps, but with a more readable syntax, and it lets you compose sub-expressions into larger patterns. It also provides helpers like: - `atomic()` that prevents the engine from backtracking into what you passed as argument. No more ReDOS. - `bound()` works like `\b` but for arbitrary character sets. E.g. `bound(/[_\p{L}\p{Number}]/u)` is a Unicode-aware `\b` - Set operations on character classes: `charSet.intersection(/\p{Lowercase}/u, /\p{Script=Greek}/u)` will only match lower case greek letters I hope you'll find it useful!
Does the same job
all alternatives →

- IWI wrote a book on Python regular expressions2019 · ▲193
My book titled "Python re(gex)?" is free to download through this weekend [1][2] The book covers both 're' and 'regex' modules, has plenty of examples and chapters also have cheatsheets and exercises. Code snippets, exercises, sample chapters, etc are available on GitHub repo [3] I used pandoc+xelatex [4] to generate the pdf. [1] https://gumroad.com/l/py_regex [2] https://leanpub.com/py_regex [3] https://github.com/learnbyexample/py_regular_expressions [4]…

- GGGrasp – grep Clojure code using clojure.spec regexes2020 · github.com · ▲123
- EAEno – A lightning fast, user-friendly YAML/TOML alternative2018 · ▲102
eno [1] - A modern plaintext language w/ libraries [2] for JavaScript, Python, Ruby & soon more! We migrated a big relational research database to a file-based solution - requirements were: - Super fast and easy editability for users - Highest performance for parsing/validating >10K documents on every user change. Our trials with YAML/TOML showed us that we wanted something both faster [3][4] and easier [4], something tailored for file-based content management ... and after months of research & development it's now publicly available (under MIT license) for everyone! Last but…
More life & fun this month
the category →- TL
Life & fun · 10d ago · louisabraham.github.io

Photosynthesis fires two of your iPhone
Life & fun · 28d ago · photosynthesis.camera
SoloUno▲310Take control of hair pulling, nail biting & skin picking
Life & fun · 28d ago · solouno.io

Scroll through all 43,252,003,274,489,856,000 reachable Rubik's Cube permutations.
Life & fun · 26d ago · everycube.alen.is


Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums. How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies. Repo and tests:…
Life & fun · 26d ago · baselashraf81.github.io
Launched alongside, May 2022
the whole month →
Peerlist▲1,052A professional network w/ robust work profiles at its core
Life & fun · 2022 · peerlist.io



- MA
Life & fun · 2022 · github.com
