I needed a Markdown to HTML converter for a developer toolbox project. My first thought was to use marked.js, but then I realized — the core logic …
Posts for: #Regex
jq: The Swiss Army Knife for JSON Processing
When processing JSON on the command line, many reach for grep with regex or write a quick Python one-liner. But jq, designed specifically for J…
Linux grep Command Deep Dive: From Regex to High-Performance Text Search
The name grep comes from the ed editor command g/re/p (global regular expression print). Born in 1973, this tool remains one of every program…
Linux awk Command: The Swiss Army Knife for Text Processing
awk is one of the most powerful text processing tools in Linux. The name comes from the initials of its three creators: Aho, Weinberger, and Kernig…
Deep Dive into grep: From Regex to Performance Optimization
Recently, while debugging production logs, I needed to filter specific errors from a 2GB log file. Running grep "ERROR" app.log took 5 minutes wi…
From Regex to AST: Building a CSS Formatter
I recently inherited a legacy project where CSS files were minified to a single line. Debugging was a nightmare. I tried several online tools, but …
From Regex to AST: Understanding Code Minification Principles
Recently, I was optimizing a frontend project where the bundled JS file exceeded 2MB. Even with Webpack’s production mode, the size seemed excessiv…
From Regex to AST: Building a Code Formatter
Dealing with minified legacy code is painful. While Prettier is powerful, sometimes you just want to quickly format a snippet without configuring r…