# Regex Becomes a 3D Marble Run You Can Watch

Original title: Regex visualized as 3D marble run

> Hacker News story 50122671 · language: en · submitted 2026-10-16
> Web version: https://zeli.app/story/50122671
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 97 · by [seizethecheese](<https://news.ycombinator.com/user?id=seizethecheese>) · 💬 37
[original](<https://www.regexmarblerun.com/>) · [HN discussion](<https://news.ycombinator.com/item?id=50122671>)

## Summary

A web project turns JavaScript regular expressions into a 3D marble run, where each piece of the pattern becomes a physical track segment. The example layout breaks down a simple pattern into 42 pieces and 41 edges, complete with gates and a greedy loop. You can enter your own pattern and test string, with support for the u and v flags.

## Key quote

> The 3D view could not be opened. The layout is shown below.

## HN discussion (37 comments)

### [seizethecheese](<https://news.ycombinator.com/item?id=50122672>)

> My coworker used to teach non-technical people how to code. Students always found regex hard to understand.
>
> Let's be honest, regex can be hard to understand even for technical people. (At least it's hard for me.)
>
> So coworker built this to help anyone understand arbitrary regex commands.
>
> AI disclosure: this was built using Agent Duel, a local coding agent arena system (https://github.com/bottomless/agent-duel). Promotion disclosure: our company is building agent duel. To test it and find bugs we are building passion projects through the system. I nonetheless thought HN would find this interesting.

### [hollow-moe](<https://news.ycombinator.com/item?id=50146841>)

> what was that big cloudflare outage regex again ?

### [monster_truck](<https://news.ycombinator.com/item?id=50139789>)

> This is actually pretty satisfying, I wish it had sound. Maybe a dramatic follow cam for the balls

### [fwlr](<https://news.ycombinator.com/item?id=50140423>)

> Seems the input text box is limited to 301 characters.

### [Sarkie](<https://news.ycombinator.com/item?id=50140867>)

> Now I have 3 problems

---

## Cite

- Page: https://zeli.app/story/50122671
- Date: 2026-10-16
- Source: regexmarblerun.com (https://www.regexmarblerun.com/)
- Hacker News: https://news.ycombinator.com/item?id=50122671

## Other languages

- zh: https://zeli.app/zh/story/50122671 · markdown: https://zeli.app/zh/story/50122671.md
- ja: https://zeli.app/ja/story/50122671 · markdown: https://zeli.app/ja/story/50122671.md
- ko: https://zeli.app/ko/story/50122671 · markdown: https://zeli.app/ko/story/50122671.md
- de: https://zeli.app/de/story/50122671 · markdown: https://zeli.app/de/story/50122671.md
- es: https://zeli.app/es/story/50122671 · markdown: https://zeli.app/es/story/50122671.md
- ru: https://zeli.app/ru/story/50122671 · markdown: https://zeli.app/ru/story/50122671.md
