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.
A comprehensive cheat sheet covering the basics of Regular Expressions (RegEx), including syntax, quantifiers, character classes, and practical examples.
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.
Explains common mistakes in email validation and provides correct, permissive approaches for developers.
Learn two methods to replace all occurrences of a string in JavaScript: using regex with global flag and the newer replaceAll function.
Explains how to implement responsive images in Jekyll using a pre-render hook and a custom regex to replace Markdown syntax with a Liquid tag.
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 developer investigates a performance bottleneck caused by regex validation in AutoMapper and explores faster alternatives for string validation.
A guide on creating a new TAP lexer for the Pygments syntax highlighter to format code in documentation.
Explores browser inconsistencies in validating HTML5 input type='url' and provides a regex pattern to fix validation issues.
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.