Regex Roulette · #33 · 2026-05-07
Match filenames ending in .js, .ts, or .jsx
Difficulty 1/3
How to play
Write a regex that matches all green strings and rejects all red strings. Live feedback shows which strings pass. Shorter patterns score better.
Must match
- app.js — not yet evaluated
- index.ts — not yet evaluated
- Component.jsx — not yet evaluated
- a.js — not yet evaluated
Must not match
- app.py — not yet evaluated
- file.tsx — not yet evaluated
- app.css — not yet evaluated
- noext — not yet evaluated
- .js — not yet evaluated
Loading your progress...
Pattern body only — slashes and flags (e.g. /g, /i) aren't part of the input.
0/200 chars
Type a regex that matches all green strings and rejects all red strings · Back to hub