Writing articles, tweets, documentation—you always need to count words. Many word counters exist, but when mixing Chinese and English, the results …
Posts for: #Regex
From Regex to Unicode: Building an Accurate Text Statistics Tool
Recently, while writing technical documentation, I needed to count words. I tried several online tools and found inconsistent handling of Chinese a…
Building a Text Replace Tool: Regex and String Processing
Recently, I needed to implement a batch replace feature supporting both plain text and regex modes. Seemed simple, but I ran into some interesting …
SVG Optimizer Implementation: From Regex to Performance
Working on an icon library project, I noticed exported SVG files were often 50KB+. After optimization, they shrank by 60%. But manually uploading a…
String Escape Implementation: From Regex Replacement to Unicode Handling
Dealing with user input strings often causes problems when special characters break JSON parsing. Newlines, quotes, backslashes - they all need pro…
SQL Formatter: From Regex to AST Parser Implementation
Recently during a code review, I came across a SQL statement compressed into a single line - hundreds of characters strung together, making it pain…
Building a Regex Tester: Real-time Highlighting and Performance Optimization
I was working on form validation recently, dealing with various regular expressions. Testing each regex change required a page refresh - too tediou…
Building a Visual Regex Generator: From Zero to Match
Regular expressions are powerful but notoriously hard to remember. Even experienced developers need to look up syntax for email validation or IP ma…
Regex Explainer: Building a Parser from String to Visual Breakdown
Published: April 29, 2026, 22:40
Regex Cheatsheet: From Syntax Classification to Search Filtering
Regular expressions are essential for developers, but the syntax is complex and hard to memorize. A well-designed regex cheatsheet helps you find t…