Tips for making regular expressions easier to use in JavaScript
Tips for making JavaScript regex more readable using flags, named capture groups, whitespace, and the Regex+ library.
Tips for making JavaScript regex more readable using flags, named capture groups, whitespace, and the Regex+ library.
Explains ECMAScript 2025's new regular expression pattern modifiers, allowing flags like case-insensitivity to be applied to specific parts of a regex.
Learn how to use JavaScript regular expressions to extract numbers from strings, a common task when processing user input from forms.
Learn two methods to replace all occurrences of a string in JavaScript: using regex with global flag and the newer replaceAll function.
A guide to supercharging search and global replace functionality in Vim using plugins and built-in tools for maximum speed.
A guide to setting up and using Livegrep, a fast, regex-based code search tool for large repositories, to improve GitHub search performance.
A developer's cautionary tale about building an MVP too late, using a recipe ingredient parsing service as a case study.
A guide to creating dynamic regular expressions in JavaScript using tagged template literals and Proxies to simplify string escaping.
A guide on creating a new TAP lexer for the Pygments syntax highlighter to format code in documentation.
Explains how to use regex lookahead to simulate AND, NOT, and EXCEPT operations for complex pattern matching.
Explores teaching approaches: starting with general rules vs. specific cases, using regex quantifiers as a primary example.
A guide to creating complex, readable regular expressions in JavaScript by composing them from smaller, reusable sub-patterns.