Transductive regular expressions for text editing
An extension of regular expressions for text editing, with a grep-like command-line tool. If you, like me, struggle with group logic in regular expressions, you might find it useful. I wanted to do this for a very long time. It is more of a sketch or prototype. I'd really appreciate your feedback!
Transductive regular expressions for text editing launched on February 7, 2025 with 263 votes, #136 of 5,999 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
Transductive regular expressions for text editing is a command-line tool that extends standard regular expressions to simplify group logic for text editing tasks. Designed for users who find traditional regex group handling confusing, it offers a grep-like interface for pattern matching and text manipulation. The creator describes it as a prototype and welcomes feedback from users.
written from the facts on this page · September 2026
From the sources
Transductive regular expressions. Contribute to c0stya/trre development by creating an account on GitHub.
Regular expressions is a great tool for searching patterns in text. But I always found it unnatural for text editing. The group logic works as a post-processor and can be complicated. Here I propose an extension to the regular expression language for pattern matching and text modification. I call it transductive regular expressions or simply trre . It introduces the : symbol to define transformations. The simplest form is a:b , which replaces a with b. I call this a transductive pair or transduction . To demonstrate the concept, I have created a command line tool trre . It feels similar to the grep -E command. echo ' cat ' | ./trre ' cat:dog ' dog A more cryptic token-by-token version: echo…from github.com
Does a similar job
all alternatives →
Regex Cheatsheet2020 · ihateregex.io · ▲499A modern regular expression playground with live matching, visual railroad diagrams, rich notes, and easy sharing.
- RFRegEx for Regular Folk – A visual, example-based introduction2020 · refrf.shreyasminocha.me · ▲502

- RERegular expression compilation visualized2021 · compiler.org · ▲219
- SCSearch code in GitHub repos using regular expressions2020 · grep.app · ▲614
Semantic Grep – A Word2Vec-powered search tool2024 · github.com · ▲356Much improved new version. Search for words similar to the query. For example, "death" will find "death", "dying", "dead", "killing"... Incredibly useful for exploring large text datasets where exact matches are too restrictive.
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 2d ago · permit.petercai.com
- IV
Life & fun · 14d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 15d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 9d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 13d ago · carrierexplode.com

Life & fun · 23d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, February 2025
the whole month →
Screen Studio 3.0▲1,832Beautiful screen recordings with instant shareable links
Growth · 2025 · screen.studio

- IG
I was at FB/Meta from late 2013 to early 2023, mostly working in the compiler/runtime spaces. I got hit in the spring 2023 layoff wave. I immediately started making games in my newfound free time (a lifelong interest, and I even worked in AA(A?) back ca. ~2000), and in October 2023 I stumbled upon the idea of a roguelike pachinko/plinko game inspired by Luck Be A Landlord. Things snowballed quickly, I started talking to publishers, then worked like crazy through all of 2024, almost the hardest I've ever worked in my career, and launched the game in December 2024. It's sold…
Work · 2025



i wanted to change the habit of reaching for my phone in the morning and doomscrolling away an hour so i built an app to help me. now i have to literally touch grass before accessing my most distracting apps the app is built in swiftui, uses the screen time apis provided by apple and google vision to recognise grass or not i'd love to get your thoughts on the concept.
Life & fun · 2025 · touchgrass.now