DFIELDSOLUTIONS

Free software

LabSylex: Make sense of the slashes

A hand-rolled regex lexer powers the explainer; ReDoS detection and native $-expansion replace mode round it out - all client-side, dependency-free.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareSylex

Sylex is an interactive regex explainer that breaks any pattern down into its parts and tells you what each one does. It runs on a hand-rolled lexer rather than the browser's regex engine, which is what lets it flag ReDoS-prone constructs and power a native $-expansion replace mode in the same pass. It is a from-scratch, dependency-free build that runs entirely in the browser, so you can download it and run it locally.

01About the app

Frontend craft on a tricky domain

What to take away

  • A hand-rolled regex lexer powers the explainer; ReDoS detection and native $-expansion replace mode round it out - all client-side, dependency-free.
  • Download: Sylex (ZIP)
We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary