---
title: "Discussion on \"I Built a Regex Engine in About 100 Lines of Python\" | Hashnode"
description: "Discussion on \"I Built a Regex Engine in About 100 Lines of Python\". A tiny Python regex engine built with Thompson’s NFA algorithm, tested against nearly 12 million comparisons and designed to avoid catastrophic backtracking."
url: "https://hashnode.com/posts/i-built-a-regex-engine-in-about-100-lines-of-python-xara8/6b0453cbc6f7393e3019cfb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I Built a Regex Engine in About 100 Lines of Python](https://blog.zyvop.com/i-built-a-regex-engine-in-about-100-lines-of-python-xara8?utm_source=hashnode&utm_medium=feed)

A tiny Python regex engine built with Thompson’s NFA algorithm, tested against nearly 12 million comparisons and designed to avoid catastrophic backtracking.

5h ago · 11 min read · blog.zyvop.com  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#finiteautomata](https://hashnode.com/tag/finiteautomata)
-   [#programming](https://hashnode.com/tag/programming)
-   [#python](https://hashnode.com/tag/python)
-   [#regularexpressions](https://hashnode.com/tag/regularexpressions)

## Written by

[ZyVOP](https://hashnode.com/@zyvop)

@zyvop · Delhi, India

  
[View profile](https://hashnode.com/@zyvop)

The Developer Publishing Hub

One platform to write, cross-post to Dev.to, Medium, WordPress, Hashnode, and Bluesky, and protect your SEO with canonical links. Zero paywalls and full content ownership.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
