This cheat sheet compiles twenty practical regular‑expression patterns—including date, password, email, ID, IP, URL, and HTML validation examples—along with JavaScript snippets, giving developers a quick reference to boost input‑checking efficiency across front‑end and back‑end projects.
This tutorial walks you through creating a Python-based web crawler that fetches jokes from Qiushibaike, explaining the page structure, required regular expressions, and how to run the script to browse content directly from the command line.
This article explains the fundamentals of regular expressions in Python, covering core concepts, greedy vs. non‑greedy quantifiers, backslash handling with raw strings, and a detailed walkthrough of the re module’s functions such as compile, match, search, split, findall, finditer, sub and subn, illustrated with code examples and diagrams.
This article introduces sed as a powerful stream editor for text processing, explains its pattern‑space workflow, details command syntax, addressing methods, options, meta‑characters, and provides numerous concrete examples—including deletions, substitutions, range selections, multi‑command scripts, and file I/O operations—illustrating how each feature works in practice.
This article explains how Python’s re module implements regular expressions—a powerful, language‑agnostic tool for pattern matching, validation, searching, and text manipulation—covering compilation, core functions, metacharacters, grouping, and practical usage examples.
This comprehensive guide explains what regular expressions are, their practical uses in data validation and string manipulation, the syntax of literals and constructors, key String and RegExp methods, character classes, quantifiers, anchors, groups, assertions, flags, and the behavior of JavaScript's NFA engine, all illustrated with clear code examples.
This article provides a concise collection of practical sed command examples, demonstrating how to print, delete, substitute, and transform lines and characters in a text file using regular expressions, including techniques for case conversion, line numbering, and in‑place editing.
This article explains regular expression delimiters, common metacharacters, quantifiers, anchors, character classes, logical operators, negation, and escaping, providing clear examples of each pattern and how they match specific strings in target text.
This article explains why regular expressions are essential, introduces JavaScript regex syntax and creation methods, compares ES3 and ES5 behaviors, details literals, character classes, quantifiers, anchors, modifiers, and demonstrates practical patterns for URLs, HTML tags, and quoted strings.
This guide explains how to use the GNU grep tool on Linux and Unix to perform powerful text searches with basic and extended regular expressions, covering pattern matching, character classes, wildcards, logical operators, quantifiers, output formatting, and differences between grep and egrep.
This article explains the meaning of a seemingly cryptic regular expression, demonstrates its semantic diagram using the Regulex visualization tool, and shows how Regulex can be applied to JavaScript, PHP, and Java regexes, including its API and download links.
This article introduces regular expressions, explains the difference between basic (grep) and extended (egrep) syntax, lists common meta‑characters, quantifiers, anchors, grouping, and shows practical command‑line examples with grep options for text searching and manipulation.
This article explains the most common regular‑expression metacharacters, their meanings, and shows how to combine them in real‑world grep commands to match patterns such as lines starting with 30, containing 70 or 1800, and validating email addresses.
The Unix grep command, created by Ken Thompson before the fourth edition of Unix and named after the ed editor’s “g/re/p” syntax, first appeared in Version 4, later expanded by Al Aho into egrep and fgrep, and was popularized through the GNU and BSD implementations, illustrating Unix’s collaborative evolution.
This article provides a comprehensive guide to Python's regular expression support, covering fundamental concepts, greedy vs. non‑greedy quantifiers, escape handling, match objects, pattern compilation, and the full suite of re module functions with practical code examples.
This article provides a comprehensive, English-language reference of common regular expression metacharacters, explaining their meanings, usage rules, and examples for pattern matching in programming languages such as JavaScript.