{
  "$schema": "https://json-schema.org/draft-07/schema#",
  "name": "Production-Ready Regex Pattern Library 2026",
  "description": "115 regex patterns: email, URL, phone, validation, security, dev. Battle-tested.",
  "source": "Bytepane developer team curation",
  "attribution": "Data via Bytepane (https://bytepane.com/)",
  "license": "CC-BY 4.0",
  "last_updated": "2026-04-26",
  "total_records": 115,
  "data": [
    {
      "slug": "email-address",
      "name": "Email Address",
      "category": "Validation",
      "pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
      "flags": "",
      "testMatch": "user@example.com",
      "testNoMatch": "user@.com",
      "language": "Universal",
      "useCase": "Form validation, data extraction, contact scraping",
      "difficulty": "Beginner",
      "description": "Validates standard email addresses with username, @ symbol, domain, and TLD. Covers most common email formats used in web forms.",
      "related": [
        "phone-number-us",
        "phone-number-international",
        "url",
        "ipv4-address",
        "ipv6-address",
        "mac-address"
      ]
    },
    {
      "slug": "phone-number-us",
      "name": "Phone Number (US)",
      "category": "Validation",
      "pattern": "^(\\+1)?[-.\\s]?\\(?\\d{3}\\)?[-.\\s]?\\d{3}[-.\\s]?\\d{4}$",
      "flags": "",
      "testMatch": "(555) 123-4567",
      "testNoMatch": "123-45-678",
      "language": "Universal",
      "useCase": "Phone input validation, contact forms, CRM data cleaning",
      "difficulty": "Beginner",
      "description": "Matches US phone numbers in common formats including with/without country code, parentheses, dashes, dots, and spaces.",
      "related": [
        "email-address",
        "phone-number-international",
        "url",
        "ipv4-address",
        "ipv6-address",
        "mac-address"
      ]
    },
    {
      "slug": "phone-number-international",
      "name": "Phone Number (International)",
      "category": "Validation",
      "pattern": "^\\+?[1-9]\\d{1,14}$",
      "flags": "",
      "testMatch": "+442071234567",
      "testNoMatch": "+0123",
      "language": "Universal",
      "useCase": "International phone validation, E.164 format compliance",
      "difficulty": "Intermediate",
      "description": "Validates international phone numbers following the E.164 standard. Supports 1-15 digits with optional plus prefix.",
      "related": [
        "email-address",
        "phone-number-us",
        "url",
        "ipv4-address",
        "ipv6-address",
        "mac-address"
      ]
    },
    {
      "slug": "url",
      "name": "URL",
      "category": "Validation",
      "pattern": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)",
      "flags": "",
      "testMatch": "https://www.example.com/path?q=1",
      "testNoMatch": "not-a-url",
      "language": "Universal",
      "useCase": "Link validation, web scraping, content parsing",
      "difficulty": "Intermediate",
      "description": "Matches HTTP and HTTPS URLs with optional www prefix, domain, path, query parameters, and fragments.",
      "related": [
        "email-address",
        "phone-number-us",
        "phone-number-international",
        "ipv4-address",
        "ipv6-address",
        "mac-address"
      ]
    },
    {
      "slug": "ipv4-address",
      "name": "IPv4 Address",
      "category": "Validation",
      "pattern": "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$",
      "flags": "",
      "testMatch": "192.168.1.1",
      "testNoMatch": "256.1.1.1",
      "language": "Universal",
      "useCase": "Network configuration, log parsing, firewall rules",
      "difficulty": "Intermediate",
      "description": "Validates IPv4 addresses ensuring each octet is 0-255. Commonly used in network tools, log analysis, and security applications.",
      "related": [
        "email-address",
        "phone-number-us",
        "phone-number-international",
        "url",
        "ipv6-address",
        "mac-address"
      ]
    },
    {
      "slug": "ipv6-address",
      "name": "IPv6 Address",
      "category": "Validation",
      "pattern": "^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$",
      "flags": "",
      "testMatch": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
      "testNoMatch": "2001:db8::1",
      "language": "Universal",
      "useCase": "Network configuration, DNS records, next-gen networking",
      "difficulty": "Advanced",
      "description": "Matches full IPv6 addresses in standard notation with 8 groups of 4 hexadecimal digits separated by colons.",
      "related": [
        "email-address",
        "phone-number-us",
        "phone-number-international",
        "url",
        "ipv4-address",
        "mac-address"
      ]
    },
    {
      "slug": "mac-address",
      "name": "MAC Address",
      "category": "Validation",
      "pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",
      "flags": "",
      "testMatch": "00:1A:2B:3C:4D:5E",
      "testNoMatch": "00:1A:2B",
      "language": "Universal",
      "useCase": "Network device identification, DHCP management, security auditing",
      "difficulty": "Beginner",
      "description": "Validates MAC addresses in colon or hyphen-separated format with 6 groups of 2 hexadecimal digits.",
      "related": [
        "email-address",
        "phone-number-us",
        "phone-number-international",
        "url",
        "ipv4-address",
        "ipv6-address"
      ]
    },
    {
      "slug": "domain-name",
      "name": "Domain Name",
      "category": "Validation",
      "pattern": "^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$",
      "flags": "",
      "testMatch": "sub.example.com",
      "testNoMatch": "-invalid.com",
      "language": "Universal",
      "useCase": "DNS validation, URL parsing, domain registration checks",
      "difficulty": "Intermediate",
      "description": "Validates domain names with proper label formatting, supporting subdomains and various TLD lengths.",
      "related": [
        "email-address",
        "phone-number-us",
        "phone-number-international",
        "url",
        "ipv4-address",
        "ipv6-address"
      ]
    },
    {
      "slug": "integer",
      "name": "Integer",
      "category": "Numbers",
      "pattern": "^-?\\d+$",
      "flags": "",
      "testMatch": "-42",
      "testNoMatch": "3.14",
      "language": "Universal",
      "useCase": "Input validation, number parsing, data filtering",
      "difficulty": "Beginner",
      "description": "Matches whole numbers including negative values. Simple pattern for validating integer input in forms or data processing.",
      "related": [
        "decimal-number",
        "currency-usd",
        "percentage",
        "hexadecimal-number",
        "binary-number",
        "scientific-notation"
      ]
    },
    {
      "slug": "decimal-number",
      "name": "Decimal Number",
      "category": "Numbers",
      "pattern": "^-?\\d+\\.?\\d*$",
      "flags": "",
      "testMatch": "3.14159",
      "testNoMatch": "3.14.15",
      "language": "Universal",
      "useCase": "Numeric input validation, scientific data, calculations",
      "difficulty": "Beginner",
      "description": "Matches integers and decimal numbers with optional negative sign. Allows trailing decimals for flexible number parsing.",
      "related": [
        "integer",
        "currency-usd",
        "percentage",
        "hexadecimal-number",
        "binary-number",
        "scientific-notation"
      ]
    },
    {
      "slug": "currency-usd",
      "name": "Currency (USD)",
      "category": "Numbers",
      "pattern": "^\\$?\\d{1,3}(,\\d{3})*(\\.\\d{2})?$",
      "flags": "",
      "testMatch": "$1,234.56",
      "testNoMatch": "$12,34.5",
      "language": "Universal",
      "useCase": "Financial data parsing, invoice processing, price extraction",
      "difficulty": "Intermediate",
      "description": "Validates US dollar amounts with optional dollar sign, comma-separated thousands, and exactly two decimal places.",
      "related": [
        "integer",
        "decimal-number",
        "percentage",
        "hexadecimal-number",
        "binary-number",
        "scientific-notation"
      ]
    },
    {
      "slug": "percentage",
      "name": "Percentage",
      "category": "Numbers",
      "pattern": "^-?\\d+(\\.\\d+)?%$",
      "flags": "",
      "testMatch": "99.9%",
      "testNoMatch": "100",
      "language": "Universal",
      "useCase": "Data validation, statistics, report parsing",
      "difficulty": "Beginner",
      "description": "Matches percentage values with optional decimal places and negative sign, requiring the percent symbol at the end.",
      "related": [
        "integer",
        "decimal-number",
        "currency-usd",
        "hexadecimal-number",
        "binary-number",
        "scientific-notation"
      ]
    },
    {
      "slug": "hexadecimal-number",
      "name": "Hexadecimal Number",
      "category": "Numbers",
      "pattern": "^(0x)?[0-9a-fA-F]+$",
      "flags": "",
      "testMatch": "0xFF00FF",
      "testNoMatch": "0xGG",
      "language": "Universal",
      "useCase": "Color codes, memory addresses, binary data representation",
      "difficulty": "Beginner",
      "description": "Validates hexadecimal numbers with optional 0x prefix. Used in color codes, memory addresses, and low-level programming.",
      "related": [
        "integer",
        "decimal-number",
        "currency-usd",
        "percentage",
        "binary-number",
        "scientific-notation"
      ]
    },
    {
      "slug": "binary-number",
      "name": "Binary Number",
      "category": "Numbers",
      "pattern": "^(0b)?[01]+$",
      "flags": "",
      "testMatch": "0b10110",
      "testNoMatch": "0b102",
      "language": "Universal",
      "useCase": "Binary data, bitwise operations, computer science education",
      "difficulty": "Beginner",
      "description": "Matches binary numbers (0s and 1s) with optional 0b prefix for standard binary notation.",
      "related": [
        "integer",
        "decimal-number",
        "currency-usd",
        "percentage",
        "hexadecimal-number",
        "scientific-notation"
      ]
    },
    {
      "slug": "scientific-notation",
      "name": "Scientific Notation",
      "category": "Numbers",
      "pattern": "^-?\\d+(\\.\\d+)?[eE][+-]?\\d+$",
      "flags": "",
      "testMatch": "6.022e23",
      "testNoMatch": "6.022f23",
      "language": "Universal",
      "useCase": "Scientific computing, data analysis, engineering calculations",
      "difficulty": "Intermediate",
      "description": "Validates numbers in scientific/exponential notation like 1.5e10 or -3.14E-5. Standard format for very large or small numbers.",
      "related": [
        "integer",
        "decimal-number",
        "currency-usd",
        "percentage",
        "hexadecimal-number",
        "binary-number"
      ]
    },
    {
      "slug": "credit-card-number",
      "name": "Credit Card Number",
      "category": "Numbers",
      "pattern": "^(?:4\\d{12}(?:\\d{3})?|5[1-5]\\d{14}|3[47]\\d{13}|6(?:011|5\\d{2})\\d{12})$",
      "flags": "",
      "testMatch": "4111111111111111",
      "testNoMatch": "1234567890",
      "language": "Universal",
      "useCase": "Payment form validation, PCI compliance, fraud detection",
      "difficulty": "Advanced",
      "description": "Validates Visa, Mastercard, Amex, and Discover card numbers by their prefix patterns and lengths. Does not verify Luhn checksum.",
      "related": [
        "integer",
        "decimal-number",
        "currency-usd",
        "percentage",
        "hexadecimal-number",
        "binary-number"
      ]
    },
    {
      "slug": "date-yyyy-mm-dd",
      "name": "Date (YYYY-MM-DD)",
      "category": "Date & Time",
      "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
      "flags": "",
      "testMatch": "2026-03-07",
      "testNoMatch": "2026-13-07",
      "language": "Universal",
      "useCase": "ISO 8601 date validation, database input, API payloads",
      "difficulty": "Intermediate",
      "description": "Validates dates in ISO 8601 format (YYYY-MM-DD) with valid month (01-12) and day (01-31) ranges.",
      "related": [
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime",
        "unix-timestamp"
      ]
    },
    {
      "slug": "date-mmddyyyy",
      "name": "Date (MM/DD/YYYY)",
      "category": "Date & Time",
      "pattern": "^(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])\\/\\d{4}$",
      "flags": "",
      "testMatch": "03/07/2026",
      "testNoMatch": "13/07/2026",
      "language": "Universal",
      "useCase": "US date format validation, form inputs, data parsing",
      "difficulty": "Intermediate",
      "description": "Validates dates in US format (MM/DD/YYYY). Ensures month is 01-12 and day is 01-31.",
      "related": [
        "date-yyyy-mm-dd",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime",
        "unix-timestamp"
      ]
    },
    {
      "slug": "date-ddmmyyyy",
      "name": "Date (DD/MM/YYYY)",
      "category": "Date & Time",
      "pattern": "^(0[1-9]|[12]\\d|3[01])\\/(0[1-9]|1[0-2])\\/\\d{4}$",
      "flags": "",
      "testMatch": "07/03/2026",
      "testNoMatch": "32/01/2026",
      "language": "Universal",
      "useCase": "European/international date validation, localization",
      "difficulty": "Intermediate",
      "description": "Validates dates in day-first format common in Europe and most of the world. Day 01-31, month 01-12.",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime",
        "unix-timestamp"
      ]
    },
    {
      "slug": "time-24-hour",
      "name": "Time (24-hour)",
      "category": "Date & Time",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$",
      "flags": "",
      "testMatch": "23:59:59",
      "testNoMatch": "24:00",
      "language": "Universal",
      "useCase": "Time input validation, scheduling, log timestamps",
      "difficulty": "Beginner",
      "description": "Validates 24-hour time format (HH:MM or HH:MM:SS). Hours 00-23, minutes and seconds 00-59.",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-12-hour",
        "iso-8601-datetime",
        "unix-timestamp"
      ]
    },
    {
      "slug": "time-12-hour",
      "name": "Time (12-hour)",
      "category": "Date & Time",
      "pattern": "^(0?[1-9]|1[0-2]):[0-5]\\d\\s?[AaPp][Mm]$",
      "flags": "",
      "testMatch": "2:30 PM",
      "testNoMatch": "13:00 PM",
      "language": "Universal",
      "useCase": "US time display, scheduling apps, time picker validation",
      "difficulty": "Beginner",
      "description": "Validates 12-hour time with AM/PM indicator. Hours 1-12, minutes 00-59, with flexible spacing.",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "iso-8601-datetime",
        "unix-timestamp"
      ]
    },
    {
      "slug": "iso-8601-datetime",
      "name": "ISO 8601 DateTime",
      "category": "Date & Time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})?$",
      "flags": "",
      "testMatch": "2026-03-07T14:30:00Z",
      "testNoMatch": "2026-03-07 14:30:00",
      "language": "Universal",
      "useCase": "API timestamps, logging, database datetime fields",
      "difficulty": "Advanced",
      "description": "Validates full ISO 8601 datetime strings with optional milliseconds and timezone offset (Z or +/-HH:MM).",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "unix-timestamp"
      ]
    },
    {
      "slug": "unix-timestamp",
      "name": "Unix Timestamp",
      "category": "Date & Time",
      "pattern": "^\\d{10,13}$",
      "flags": "",
      "testMatch": "1678185600000",
      "testNoMatch": "123456789",
      "language": "Universal",
      "useCase": "API responses, database records, log analysis",
      "difficulty": "Beginner",
      "description": "Matches Unix timestamps in seconds (10 digits) or milliseconds (13 digits). Used universally in programming.",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime"
      ]
    },
    {
      "slug": "relative-date",
      "name": "Relative Date",
      "category": "Date & Time",
      "pattern": "^\\d+\\s+(second|minute|hour|day|week|month|year)s?\\s+(ago|from now)$",
      "flags": "i",
      "testMatch": "5 days ago",
      "testNoMatch": "yesterday",
      "language": "Universal",
      "useCase": "Natural language date parsing, social media timestamps, UX",
      "difficulty": "Intermediate",
      "description": "Matches relative time expressions like \"5 minutes ago\" or \"3 months from now\" for human-readable timestamps.",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime"
      ]
    },
    {
      "slug": "duration-hh-mm-ss",
      "name": "Duration (HH:MM:SS)",
      "category": "Date & Time",
      "pattern": "^\\d+:[0-5]\\d:[0-5]\\d$",
      "flags": "",
      "testMatch": "01:30:45",
      "testNoMatch": "1:60:00",
      "language": "Universal",
      "useCase": "Video duration, timer display, time tracking",
      "difficulty": "Beginner",
      "description": "Validates time duration format with hours (any count), minutes (00-59), and seconds (00-59).",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime"
      ]
    },
    {
      "slug": "cron-expression",
      "name": "Cron Expression",
      "category": "Date & Time",
      "pattern": "^(\\*|\\d+|\\d+-\\d+|\\d+\\/\\d+)(\\s+(\\*|\\d+|\\d+-\\d+|\\d+\\/\\d+)){4}$",
      "flags": "",
      "testMatch": "0 */6 * * *",
      "testNoMatch": "0 0",
      "language": "Universal",
      "useCase": "Task scheduling, CI/CD pipelines, system administration",
      "difficulty": "Advanced",
      "description": "Validates standard 5-field cron expressions (minute, hour, day, month, weekday) with wildcards and ranges.",
      "related": [
        "date-yyyy-mm-dd",
        "date-mmddyyyy",
        "date-ddmmyyyy",
        "time-24-hour",
        "time-12-hour",
        "iso-8601-datetime"
      ]
    },
    {
      "slug": "username",
      "name": "Username",
      "category": "Text & Strings",
      "pattern": "^[a-zA-Z0-9_-]{3,20}$",
      "flags": "",
      "testMatch": "cool_user123",
      "testNoMatch": "ab",
      "language": "Universal",
      "useCase": "User registration, profile validation, social media handles",
      "difficulty": "Beginner",
      "description": "Validates usernames with letters, numbers, underscores, and hyphens. Length 3-20 characters.",
      "related": [
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments",
        "quoted-string"
      ]
    },
    {
      "slug": "strong-password",
      "name": "Strong Password",
      "category": "Text & Strings",
      "pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$",
      "flags": "",
      "testMatch": "Pass@word1",
      "testNoMatch": "password",
      "language": "Universal",
      "useCase": "Registration forms, password policy enforcement, security audits",
      "difficulty": "Intermediate",
      "description": "Enforces strong password policy: minimum 8 characters with at least one uppercase, lowercase, digit, and special character.",
      "related": [
        "username",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments",
        "quoted-string"
      ]
    },
    {
      "slug": "slug-url-friendly",
      "name": "Slug (URL-friendly)",
      "category": "Text & Strings",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "flags": "",
      "testMatch": "my-blog-post-2026",
      "testNoMatch": "My Blog Post",
      "language": "Universal",
      "useCase": "URL generation, SEO, CMS, blog platforms",
      "difficulty": "Beginner",
      "description": "Validates URL-friendly slugs with lowercase letters, numbers, and hyphens. No consecutive or trailing hyphens.",
      "related": [
        "username",
        "strong-password",
        "hashtag",
        "html-tag",
        "html-comments",
        "quoted-string"
      ]
    },
    {
      "slug": "hashtag",
      "name": "Hashtag",
      "category": "Text & Strings",
      "pattern": "#[a-zA-Z][a-zA-Z0-9_]*",
      "flags": "g",
      "testMatch": "#JavaScript #coding",
      "testNoMatch": "#123",
      "language": "Universal",
      "useCase": "Social media parsing, content tagging, trend analysis",
      "difficulty": "Beginner",
      "description": "Extracts hashtags starting with # followed by a letter and optional alphanumeric/underscore characters.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "html-tag",
        "html-comments",
        "quoted-string"
      ]
    },
    {
      "slug": "html-tag",
      "name": "HTML Tag",
      "category": "Text & Strings",
      "pattern": "<\\/?[a-zA-Z][a-zA-Z0-9]*\\b[^>]*>",
      "flags": "g",
      "testMatch": "<div class=\"test\">",
      "testNoMatch": "<123>",
      "language": "Universal",
      "useCase": "HTML parsing, sanitization, template processing, web scraping",
      "difficulty": "Intermediate",
      "description": "Matches opening and closing HTML tags with optional attributes. Useful for HTML manipulation and content extraction.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-comments",
        "quoted-string"
      ]
    },
    {
      "slug": "html-comments",
      "name": "HTML Comments",
      "category": "Text & Strings",
      "pattern": "<!--[\\s\\S]*?-->",
      "flags": "g",
      "testMatch": "<!-- comment -->",
      "testNoMatch": "<!- not a comment ->",
      "language": "Universal",
      "useCase": "Code cleanup, template processing, build tools",
      "difficulty": "Beginner",
      "description": "Matches HTML comments including multi-line content. Used for stripping comments during minification or processing.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "quoted-string"
      ]
    },
    {
      "slug": "quoted-string",
      "name": "Quoted String",
      "category": "Text & Strings",
      "pattern": "([\"'])(?:(?!\\1|\\\\).|\\\\.)*\\1",
      "flags": "g",
      "testMatch": "\"hello world\"",
      "testNoMatch": "\"unclosed",
      "language": "Universal",
      "useCase": "Syntax highlighting, code parsing, string extraction",
      "difficulty": "Advanced",
      "description": "Matches single or double-quoted strings with proper escape handling. Handles escaped quotes within strings.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments"
      ]
    },
    {
      "slug": "markdown-link",
      "name": "Markdown Link",
      "category": "Text & Strings",
      "pattern": "\\[([^\\]]+)\\]\\(([^)]+)\\)",
      "flags": "g",
      "testMatch": "[Click here](https://example.com)",
      "testNoMatch": "[broken(link]",
      "language": "Universal",
      "useCase": "Markdown parsing, documentation processing, link extraction",
      "difficulty": "Intermediate",
      "description": "Matches Markdown inline links capturing both the display text and URL. Essential for Markdown-to-HTML converters.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments"
      ]
    },
    {
      "slug": "markdown-heading",
      "name": "Markdown Heading",
      "category": "Text & Strings",
      "pattern": "^(#{1,6})\\s+(.+)$",
      "flags": "gm",
      "testMatch": "## My Heading",
      "testNoMatch": "####### H7",
      "language": "Universal",
      "useCase": "Table of contents generation, document structure analysis",
      "difficulty": "Beginner",
      "description": "Matches Markdown headings H1-H6. Captures the level (number of #) and heading text.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments"
      ]
    },
    {
      "slug": "whitespace-trimmer",
      "name": "Whitespace Trimmer",
      "category": "Text & Strings",
      "pattern": "^\\s+|\\s+$",
      "flags": "gm",
      "testMatch": "  hello  ",
      "testNoMatch": "hello",
      "language": "Universal",
      "useCase": "Text cleanup, input sanitization, data normalization",
      "difficulty": "Beginner",
      "description": "Matches leading and trailing whitespace for trimming. Equivalent to the trim() method in most languages.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments"
      ]
    },
    {
      "slug": "duplicate-words",
      "name": "Duplicate Words",
      "category": "Text & Strings",
      "pattern": "\\b(\\w+)\\s+\\1\\b",
      "flags": "gi",
      "testMatch": "the the",
      "testNoMatch": "the there",
      "language": "Universal",
      "useCase": "Proofreading, text quality checking, content editing",
      "difficulty": "Intermediate",
      "description": "Detects consecutively repeated words like \"the the\" or \"is is\". Useful for proofreading and text cleanup.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments"
      ]
    },
    {
      "slug": "sentence",
      "name": "Sentence",
      "category": "Text & Strings",
      "pattern": "[A-Z][^.!?]*[.!?]",
      "flags": "g",
      "testMatch": "This is a sentence.",
      "testNoMatch": "not a sentence",
      "language": "Universal",
      "useCase": "NLP preprocessing, text splitting, content analysis",
      "difficulty": "Beginner",
      "description": "Matches sentences starting with a capital letter and ending with period, exclamation, or question mark.",
      "related": [
        "username",
        "strong-password",
        "slug-url-friendly",
        "hashtag",
        "html-tag",
        "html-comments"
      ]
    },
    {
      "slug": "javascript-variable",
      "name": "JavaScript Variable",
      "category": "Code & Programming",
      "pattern": "\\b(const|let|var)\\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\\b",
      "flags": "g",
      "testMatch": "const myVar = 5",
      "testNoMatch": "function foo",
      "language": "JavaScript",
      "useCase": "Code analysis, linting, refactoring tools",
      "difficulty": "Intermediate",
      "description": "Matches JavaScript variable declarations (const, let, var) and captures the variable name.",
      "related": [
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement",
        "json-key-value-pair"
      ]
    },
    {
      "slug": "javascript-function",
      "name": "JavaScript Function",
      "category": "Code & Programming",
      "pattern": "\\bfunction\\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*\\(",
      "flags": "g",
      "testMatch": "function calculateTax(",
      "testNoMatch": "const fn = () =>",
      "language": "JavaScript",
      "useCase": "Code indexing, documentation generation, IDE features",
      "difficulty": "Intermediate",
      "description": "Matches named function declarations in JavaScript, capturing the function name.",
      "related": [
        "javascript-variable",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement",
        "json-key-value-pair"
      ]
    },
    {
      "slug": "css-hex-color",
      "name": "CSS Hex Color",
      "category": "Code & Programming",
      "pattern": "#([0-9a-fA-F]{3}){1,2}\\b",
      "flags": "g",
      "testMatch": "#FF5733",
      "testNoMatch": "#GG5733",
      "language": "CSS",
      "useCase": "Design tools, theme extraction, CSS processing",
      "difficulty": "Beginner",
      "description": "Matches 3 or 6-digit hex color codes. Commonly used to extract or validate colors from CSS stylesheets.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-class-selector",
        "python-import",
        "sql-select-statement",
        "json-key-value-pair"
      ]
    },
    {
      "slug": "css-class-selector",
      "name": "CSS Class Selector",
      "category": "Code & Programming",
      "pattern": "\\.[a-zA-Z_][a-zA-Z0-9_-]*",
      "flags": "g",
      "testMatch": ".my-class",
      "testNoMatch": "#myId",
      "language": "CSS",
      "useCase": "CSS analysis, class extraction, style auditing",
      "difficulty": "Beginner",
      "description": "Matches CSS class selectors starting with a dot. Captures class names from stylesheets for analysis.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "python-import",
        "sql-select-statement",
        "json-key-value-pair"
      ]
    },
    {
      "slug": "python-import",
      "name": "Python Import",
      "category": "Code & Programming",
      "pattern": "^(?:from\\s+[\\w.]+\\s+)?import\\s+[\\w.,\\s]+$",
      "flags": "gm",
      "testMatch": "from os.path import join",
      "testNoMatch": "const import = 5",
      "language": "Python",
      "useCase": "Dependency analysis, code refactoring, import sorting",
      "difficulty": "Intermediate",
      "description": "Matches Python import statements including `import` and `from...import` forms for dependency tracking.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "sql-select-statement",
        "json-key-value-pair"
      ]
    },
    {
      "slug": "sql-select-statement",
      "name": "SQL SELECT Statement",
      "category": "Code & Programming",
      "pattern": "\\bSELECT\\b[\\s\\S]+?\\bFROM\\b\\s+\\w+",
      "flags": "gi",
      "testMatch": "SELECT * FROM users",
      "testNoMatch": "INSERT INTO users",
      "language": "SQL",
      "useCase": "Query logging, SQL injection detection, query optimization",
      "difficulty": "Intermediate",
      "description": "Matches SQL SELECT queries extracting the table name from the FROM clause. Useful for query analysis and logging.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "json-key-value-pair"
      ]
    },
    {
      "slug": "json-key-value-pair",
      "name": "JSON Key-Value Pair",
      "category": "Code & Programming",
      "pattern": "\"([^\"]+)\"\\s*:\\s*(\"([^\"]*)\"|\\d+|true|false|null)",
      "flags": "g",
      "testMatch": "\"name\": \"John\"",
      "testNoMatch": "{invalid}",
      "language": "JSON",
      "useCase": "JSON parsing, data extraction, API response processing",
      "difficulty": "Intermediate",
      "description": "Matches JSON key-value pairs with string, number, boolean, or null values. Useful for lightweight JSON processing.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement"
      ]
    },
    {
      "slug": "todo-comment",
      "name": "TODO Comment",
      "category": "Code & Programming",
      "pattern": "\\/\\/\\s*(TODO|FIXME|HACK|XXX|BUG):\\s*(.+)$",
      "flags": "gm",
      "testMatch": "// TODO: Fix this later",
      "testNoMatch": "// Regular comment",
      "language": "Universal",
      "useCase": "Code review, technical debt tracking, IDE integration",
      "difficulty": "Beginner",
      "description": "Extracts TODO, FIXME, HACK, XXX, and BUG comments from source code for task tracking.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement"
      ]
    },
    {
      "slug": "semantic-version",
      "name": "Semantic Version",
      "category": "Code & Programming",
      "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-[a-zA-Z0-9.]+)?(\\+[a-zA-Z0-9.]+)?$",
      "flags": "",
      "testMatch": "2.1.0-beta.1",
      "testNoMatch": "1.2",
      "language": "Universal",
      "useCase": "Package management, CI/CD, release automation",
      "difficulty": "Intermediate",
      "description": "Validates semantic version strings (SemVer) with major.minor.patch and optional pre-release and build metadata.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement"
      ]
    },
    {
      "slug": "git-commit-hash",
      "name": "Git Commit Hash",
      "category": "Code & Programming",
      "pattern": "^[0-9a-f]{7,40}$",
      "flags": "",
      "testMatch": "a1b2c3d",
      "testNoMatch": "xyz1234",
      "language": "Universal",
      "useCase": "Git automation, CI/CD pipelines, commit referencing",
      "difficulty": "Beginner",
      "description": "Matches Git commit SHA hashes in both short (7 chars) and full (40 chars) formats.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement"
      ]
    },
    {
      "slug": "environment-variable",
      "name": "Environment Variable",
      "category": "Code & Programming",
      "pattern": "^[A-Z][A-Z0-9_]*=.+$",
      "flags": "gm",
      "testMatch": "DATABASE_URL=postgres://localhost",
      "testNoMatch": "lowercase=value",
      "language": "Universal",
      "useCase": ".env file parsing, configuration management, deployment",
      "difficulty": "Beginner",
      "description": "Matches environment variable assignments in KEY=VALUE format with uppercase keys and underscores.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement"
      ]
    },
    {
      "slug": "import-path",
      "name": "Import Path",
      "category": "Code & Programming",
      "pattern": "['\"]([./]\\S+?)['\"]",
      "flags": "g",
      "testMatch": "import x from './utils'",
      "testNoMatch": "import 'react'",
      "language": "Universal",
      "useCase": "Dependency graph, path resolution, bundle analysis",
      "difficulty": "Intermediate",
      "description": "Extracts relative import paths from JavaScript/TypeScript import and require statements.",
      "related": [
        "javascript-variable",
        "javascript-function",
        "css-hex-color",
        "css-class-selector",
        "python-import",
        "sql-select-statement"
      ]
    },
    {
      "slug": "jwt-token",
      "name": "JWT Token",
      "category": "Security & Auth",
      "pattern": "^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$",
      "flags": "",
      "testMatch": "eyJhbG.eyJzdW.SflKxw",
      "testNoMatch": "not.a.jwt.token",
      "language": "Universal",
      "useCase": "Token validation, API authentication, security auditing",
      "difficulty": "Intermediate",
      "description": "Validates JWT (JSON Web Token) structure with three Base64URL-encoded segments separated by dots.",
      "related": [
        "uuid-v4",
        "api-key-pattern",
        "aws-access-key",
        "base64-encoded-string",
        "md5-hash",
        "sha-256-hash"
      ]
    },
    {
      "slug": "uuid-v4",
      "name": "UUID (v4)",
      "category": "Security & Auth",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
      "flags": "i",
      "testMatch": "550e8400-e29b-41d4-a716-446655440000",
      "testNoMatch": "550e8400-e29b-51d4-a716-446655440000",
      "language": "Universal",
      "useCase": "ID validation, database records, API responses",
      "difficulty": "Intermediate",
      "description": "Validates UUID version 4 format with the version nibble (4) and variant bits (8, 9, a, b) in correct positions.",
      "related": [
        "jwt-token",
        "api-key-pattern",
        "aws-access-key",
        "base64-encoded-string",
        "md5-hash",
        "sha-256-hash"
      ]
    },
    {
      "slug": "api-key-pattern",
      "name": "API Key Pattern",
      "category": "Security & Auth",
      "pattern": "(?:api[_-]?key|apikey|token)[\\s]*[=:][\\s]*[\"']?([a-zA-Z0-9_-]{20,})[\"']?",
      "flags": "gi",
      "testMatch": "api_key=\"sk_live_abc123def456ghi789\"",
      "testNoMatch": "name=John",
      "language": "Universal",
      "useCase": "Secret scanning, code review, security auditing",
      "difficulty": "Advanced",
      "description": "Detects potential API keys and tokens in source code. Used by security tools to prevent accidental secret exposure.",
      "related": [
        "jwt-token",
        "uuid-v4",
        "aws-access-key",
        "base64-encoded-string",
        "md5-hash",
        "sha-256-hash"
      ]
    },
    {
      "slug": "aws-access-key",
      "name": "AWS Access Key",
      "category": "Security & Auth",
      "pattern": "(?:AKIA|ABIA|ACCA|ASIA)[0-9A-Z]{16}",
      "flags": "",
      "testMatch": "AKIAIOSFODNN7EXAMPLE",
      "testNoMatch": "BKIAIOSFODNN7EXAMPLE",
      "language": "Universal",
      "useCase": "Secret detection, security scanning, compliance checks",
      "difficulty": "Intermediate",
      "description": "Matches AWS access key IDs that always start with AKIA (long-term) or ASIA (temporary STS) followed by 16 uppercase alphanumeric characters.",
      "related": [
        "jwt-token",
        "uuid-v4",
        "api-key-pattern",
        "base64-encoded-string",
        "md5-hash",
        "sha-256-hash"
      ]
    },
    {
      "slug": "base64-encoded-string",
      "name": "Base64 Encoded String",
      "category": "Security & Auth",
      "pattern": "^[A-Za-z0-9+/]+={0,2}$",
      "flags": "",
      "testMatch": "SGVsbG8gV29ybGQ=",
      "testNoMatch": "not base64!!!",
      "language": "Universal",
      "useCase": "Data encoding validation, API payloads, image embedding",
      "difficulty": "Beginner",
      "description": "Validates Base64-encoded strings with proper character set and optional padding. Used in data transfer and encoding.",
      "related": [
        "jwt-token",
        "uuid-v4",
        "api-key-pattern",
        "aws-access-key",
        "md5-hash",
        "sha-256-hash"
      ]
    },
    {
      "slug": "md5-hash",
      "name": "MD5 Hash",
      "category": "Security & Auth",
      "pattern": "^[a-f0-9]{32}$",
      "flags": "i",
      "testMatch": "d41d8cd98f00b204e9800998ecf8427e",
      "testNoMatch": "d41d8cd98f00b204",
      "language": "Universal",
      "useCase": "Checksum verification, file integrity, legacy password hashing",
      "difficulty": "Beginner",
      "description": "Matches MD5 hash strings (32 hexadecimal characters). Used for checksums and file integrity verification.",
      "related": [
        "jwt-token",
        "uuid-v4",
        "api-key-pattern",
        "aws-access-key",
        "base64-encoded-string",
        "sha-256-hash"
      ]
    },
    {
      "slug": "sha-256-hash",
      "name": "SHA-256 Hash",
      "category": "Security & Auth",
      "pattern": "^[a-f0-9]{64}$",
      "flags": "i",
      "testMatch": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "testNoMatch": "e3b0c44298fc1c14",
      "language": "Universal",
      "useCase": "File verification, blockchain, digital signatures",
      "difficulty": "Beginner",
      "description": "Matches SHA-256 hash strings (64 hexadecimal characters). Standard for modern cryptographic applications.",
      "related": [
        "jwt-token",
        "uuid-v4",
        "api-key-pattern",
        "aws-access-key",
        "base64-encoded-string",
        "md5-hash"
      ]
    },
    {
      "slug": "ssh-public-key",
      "name": "SSH Public Key",
      "category": "Security & Auth",
      "pattern": "^ssh-(rsa|ed25519|ecdsa)\\s+[A-Za-z0-9+/=]+",
      "flags": "",
      "testMatch": "ssh-rsa AAAAB3NzaC1yc2EAAA...",
      "testNoMatch": "not-ssh-key",
      "language": "Universal",
      "useCase": "SSH key management, server configuration, git authentication",
      "difficulty": "Intermediate",
      "description": "Matches SSH public key format with algorithm prefix (rsa, ed25519, ecdsa) followed by Base64-encoded key data.",
      "related": [
        "jwt-token",
        "uuid-v4",
        "api-key-pattern",
        "aws-access-key",
        "base64-encoded-string",
        "md5-hash"
      ]
    },
    {
      "slug": "json-object",
      "name": "JSON Object",
      "category": "Data Formats",
      "pattern": "\\{[\\s\\S]*\\}",
      "flags": "",
      "testMatch": "{\"key\": \"value\"}",
      "testNoMatch": "[1,2,3]",
      "language": "Universal",
      "useCase": "JSON detection, API response parsing, log analysis",
      "difficulty": "Beginner",
      "description": "Matches JSON object patterns enclosed in curly braces. Simple detection pattern for JSON objects in text.",
      "related": [
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section",
        "toml-key-value"
      ]
    },
    {
      "slug": "csv-row",
      "name": "CSV Row",
      "category": "Data Formats",
      "pattern": "^(\"(?:[^\"]|\"\")*\"|[^,]*)(,(\"(?:[^\"]|\"\")*\"|[^,]*))*$",
      "flags": "gm",
      "testMatch": "\"John\",\"Doe\",30",
      "testNoMatch": "",
      "language": "Universal",
      "useCase": "CSV parsing, data import, spreadsheet processing",
      "difficulty": "Advanced",
      "description": "Matches CSV rows handling quoted fields with escaped quotes. Essential for robust CSV file processing.",
      "related": [
        "json-object",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section",
        "toml-key-value"
      ]
    },
    {
      "slug": "xml-tag-with-content",
      "name": "XML Tag with Content",
      "category": "Data Formats",
      "pattern": "<(\\w+)[^>]*>(.*?)<\\/\\1>",
      "flags": "gs",
      "testMatch": "<name>John</name>",
      "testNoMatch": "<br/>",
      "language": "Universal",
      "useCase": "XML parsing, data extraction, SOAP processing",
      "difficulty": "Intermediate",
      "description": "Matches XML elements with opening tag, content, and matching closing tag. Captures tag name and inner content.",
      "related": [
        "json-object",
        "csv-row",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section",
        "toml-key-value"
      ]
    },
    {
      "slug": "yaml-key-value",
      "name": "YAML Key-Value",
      "category": "Data Formats",
      "pattern": "^([\\w.-]+):\\s+(.+)$",
      "flags": "gm",
      "testMatch": "name: John Doe",
      "testNoMatch": "- list item",
      "language": "Universal",
      "useCase": "Configuration parsing, Docker Compose, Kubernetes manifests",
      "difficulty": "Beginner",
      "description": "Matches simple YAML key-value pairs. Useful for quick parsing of configuration files.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "log-entry-common-log-format",
        "ini-section",
        "toml-key-value"
      ]
    },
    {
      "slug": "log-entry-common-log-format",
      "name": "Log Entry (Common Log Format)",
      "category": "Data Formats",
      "pattern": "^(\\S+)\\s+(\\S+)\\s+(\\S+)\\s+\\[([^\\]]+)\\]\\s+\"(\\S+)\\s+(\\S+)\\s+(\\S+)\"\\s+(\\d+)\\s+(\\d+)",
      "flags": "gm",
      "testMatch": "127.0.0.1 - - [07/Mar/2026:14:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 1234",
      "testNoMatch": "random text",
      "language": "Universal",
      "useCase": "Log analysis, monitoring, security investigation",
      "difficulty": "Advanced",
      "description": "Parses Apache/Nginx Common Log Format entries, extracting IP, timestamp, method, path, status code, and bytes.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "ini-section",
        "toml-key-value"
      ]
    },
    {
      "slug": "ini-section",
      "name": "INI Section",
      "category": "Data Formats",
      "pattern": "^\\[([^\\]]+)\\]$",
      "flags": "gm",
      "testMatch": "[database]",
      "testNoMatch": "key=value",
      "language": "Universal",
      "useCase": "Configuration file parsing, INI processing, settings management",
      "difficulty": "Beginner",
      "description": "Matches INI file section headers enclosed in square brackets. Used for parsing configuration files.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "toml-key-value"
      ]
    },
    {
      "slug": "toml-key-value",
      "name": "TOML Key-Value",
      "category": "Data Formats",
      "pattern": "^([a-zA-Z_][a-zA-Z0-9_]*)\\s*=\\s*(.+)$",
      "flags": "gm",
      "testMatch": "port = 8080",
      "testNoMatch": "# comment",
      "language": "Universal",
      "useCase": "Cargo.toml parsing, config management, Rust ecosystem",
      "difficulty": "Beginner",
      "description": "Matches TOML configuration key-value pairs. Standard format for Rust (Cargo) and Python (pyproject) projects.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section"
      ]
    },
    {
      "slug": "sql-comment",
      "name": "SQL Comment",
      "category": "Data Formats",
      "pattern": "--.*$|\\/\\*[\\s\\S]*?\\*\\/",
      "flags": "gm",
      "testMatch": "-- This is a comment",
      "testNoMatch": "SELECT * FROM t",
      "language": "SQL",
      "useCase": "SQL cleanup, query extraction, code documentation",
      "difficulty": "Intermediate",
      "description": "Matches both single-line (--) and multi-line (/* */) SQL comments for stripping or extracting documentation.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section"
      ]
    },
    {
      "slug": "docker-image-reference",
      "name": "Docker Image Reference",
      "category": "Data Formats",
      "pattern": "^([a-z0-9._-]+\\/)?[a-z0-9._-]+(:[a-zA-Z0-9._-]+)?(@sha256:[a-f0-9]{64})?$",
      "flags": "",
      "testMatch": "nginx:latest",
      "testNoMatch": "INVALID IMAGE",
      "language": "Universal",
      "useCase": "Dockerfile linting, container orchestration, CI/CD",
      "difficulty": "Intermediate",
      "description": "Validates Docker image references with optional registry, tag, and digest. Used in Dockerfiles and compose files.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section"
      ]
    },
    {
      "slug": "file-path-unix",
      "name": "File Path (Unix)",
      "category": "Data Formats",
      "pattern": "^\\/(?:[a-zA-Z0-9._-]+\\/?)*$",
      "flags": "",
      "testMatch": "/usr/local/bin/node",
      "testNoMatch": "C:\\Windows",
      "language": "Universal",
      "useCase": "Path validation, file system operations, log parsing",
      "difficulty": "Beginner",
      "description": "Matches absolute Unix/Linux file paths starting with forward slash. Validates path component characters.",
      "related": [
        "json-object",
        "csv-row",
        "xml-tag-with-content",
        "yaml-key-value",
        "log-entry-common-log-format",
        "ini-section"
      ]
    },
    {
      "slug": "email-in-text",
      "name": "Email in Text",
      "category": "Web & HTML",
      "pattern": "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}",
      "flags": "g",
      "testMatch": "Contact: user@example.com for info",
      "testNoMatch": "no email here",
      "language": "Universal",
      "useCase": "Data mining, contact extraction, web scraping",
      "difficulty": "Beginner",
      "description": "Extracts email addresses from body text. Non-anchored version for finding emails within larger strings.",
      "related": [
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id",
        "twitterx-handle"
      ]
    },
    {
      "slug": "image-tag-src",
      "name": "Image Tag (src)",
      "category": "Web & HTML",
      "pattern": "<img[^>]+src=[\"']([^\"']+)[\"']",
      "flags": "gi",
      "testMatch": "<img src=\"photo.jpg\" alt=\"Photo\">",
      "testNoMatch": "<div>no image</div>",
      "language": "HTML",
      "useCase": "Image extraction, SEO auditing, accessibility checking",
      "difficulty": "Intermediate",
      "description": "Extracts image source URLs from HTML img tags. Useful for web scraping, SEO image audits, and content migration.",
      "related": [
        "email-in-text",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id",
        "twitterx-handle"
      ]
    },
    {
      "slug": "anchor-tag-href",
      "name": "Anchor Tag (href)",
      "category": "Web & HTML",
      "pattern": "<a[^>]+href=[\"']([^\"']+)[\"']",
      "flags": "gi",
      "testMatch": "<a href=\"/about/\">About</a>",
      "testNoMatch": "<span>text</span>",
      "language": "HTML",
      "useCase": "Link extraction, site crawling, SEO link auditing",
      "difficulty": "Intermediate",
      "description": "Extracts URLs from HTML anchor tags. Essential for web crawlers, SEO tools, and broken link checkers.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id",
        "twitterx-handle"
      ]
    },
    {
      "slug": "meta-tag-content",
      "name": "Meta Tag Content",
      "category": "Web & HTML",
      "pattern": "<meta[^>]+content=[\"']([^\"']+)[\"']",
      "flags": "gi",
      "testMatch": "<meta name=\"description\" content=\"My site\">",
      "testNoMatch": "<title>Page</title>",
      "language": "HTML",
      "useCase": "SEO analysis, social media preview, metadata extraction",
      "difficulty": "Intermediate",
      "description": "Extracts content attribute values from HTML meta tags for SEO auditing and metadata analysis.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "inline-css-style",
        "youtube-video-id",
        "twitterx-handle"
      ]
    },
    {
      "slug": "inline-css-style",
      "name": "Inline CSS Style",
      "category": "Web & HTML",
      "pattern": "style=[\"']([^\"']+)[\"']",
      "flags": "gi",
      "testMatch": "<div style=\"color: red;\">",
      "testNoMatch": "<div class=\"red\">",
      "language": "HTML",
      "useCase": "Code cleanup, CSS extraction, linting",
      "difficulty": "Beginner",
      "description": "Matches inline CSS style attributes on HTML elements. Used for style extraction and converting inline styles to classes.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "youtube-video-id",
        "twitterx-handle"
      ]
    },
    {
      "slug": "youtube-video-id",
      "name": "YouTube Video ID",
      "category": "Web & HTML",
      "pattern": "(?:youtube\\.com\\/watch\\?v=|youtu\\.be\\/|youtube\\.com\\/embed\\/)([a-zA-Z0-9_-]{11})",
      "flags": "g",
      "testMatch": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "testNoMatch": "https://vimeo.com/123",
      "language": "Universal",
      "useCase": "Video embedding, content curation, social media tools",
      "difficulty": "Intermediate",
      "description": "Extracts 11-character YouTube video IDs from various URL formats including standard, shortened, and embed URLs.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "twitterx-handle"
      ]
    },
    {
      "slug": "twitterx-handle",
      "name": "Twitter/X Handle",
      "category": "Web & HTML",
      "pattern": "@([a-zA-Z0-9_]{1,15})\\b",
      "flags": "g",
      "testMatch": "@elonmusk",
      "testNoMatch": "@ spaces",
      "language": "Universal",
      "useCase": "Social media monitoring, mention tracking, user tagging",
      "difficulty": "Beginner",
      "description": "Matches Twitter/X handles with @ prefix and 1-15 alphanumeric characters or underscores.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id"
      ]
    },
    {
      "slug": "github-repository-url",
      "name": "GitHub Repository URL",
      "category": "Web & HTML",
      "pattern": "github\\.com\\/([a-zA-Z0-9_.-]+)\\/([a-zA-Z0-9_.-]+)",
      "flags": "g",
      "testMatch": "https://github.com/facebook/react",
      "testNoMatch": "https://gitlab.com/user/repo",
      "language": "Universal",
      "useCase": "Open source tracking, dependency analysis, documentation",
      "difficulty": "Beginner",
      "description": "Extracts owner and repository name from GitHub URLs. Used in dependency management and open source tooling.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id"
      ]
    },
    {
      "slug": "css-media-query",
      "name": "CSS Media Query",
      "category": "Web & HTML",
      "pattern": "@media\\s*\\([^)]+\\)\\s*\\{",
      "flags": "g",
      "testMatch": "@media (max-width: 768px) {",
      "testNoMatch": ".class { }",
      "language": "CSS",
      "useCase": "Responsive design analysis, CSS auditing, style extraction",
      "difficulty": "Intermediate",
      "description": "Matches CSS media query declarations for responsive design. Extracts breakpoints and conditions from stylesheets.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id"
      ]
    },
    {
      "slug": "data-attribute",
      "name": "Data Attribute",
      "category": "Web & HTML",
      "pattern": "data-([a-z-]+)=[\"']([^\"']*)[\"']",
      "flags": "gi",
      "testMatch": "data-user-id=\"123\"",
      "testNoMatch": "class=\"test\"",
      "language": "HTML",
      "useCase": "DOM manipulation, JavaScript frameworks, testing selectors",
      "difficulty": "Beginner",
      "description": "Matches HTML5 data attributes (data-*) and captures both the attribute name and value.",
      "related": [
        "email-in-text",
        "image-tag-src",
        "anchor-tag-href",
        "meta-tag-content",
        "inline-css-style",
        "youtube-video-id"
      ]
    },
    {
      "slug": "file-extension",
      "name": "File Extension",
      "category": "File & Path",
      "pattern": "\\.(\\w{1,10})$",
      "flags": "",
      "testMatch": "document.pdf",
      "testNoMatch": "noextension",
      "language": "Universal",
      "useCase": "File type detection, upload validation, file sorting",
      "difficulty": "Beginner",
      "description": "Extracts file extensions from filenames. Simple pattern for file type checking in upload forms.",
      "related": [
        "image-file",
        "video-file",
        "file-path-windows",
        "mime-type",
        "s3-bucket-url"
      ]
    },
    {
      "slug": "image-file",
      "name": "Image File",
      "category": "File & Path",
      "pattern": "\\.(jpe?g|png|gif|svg|webp|bmp|ico|tiff?)$",
      "flags": "i",
      "testMatch": "photo.jpg",
      "testNoMatch": "script.js",
      "language": "Universal",
      "useCase": "Upload validation, file filtering, media processing",
      "difficulty": "Beginner",
      "description": "Matches common image file extensions including JPEG, PNG, GIF, SVG, WebP, BMP, ICO, and TIFF.",
      "related": [
        "file-extension",
        "video-file",
        "file-path-windows",
        "mime-type",
        "s3-bucket-url"
      ]
    },
    {
      "slug": "video-file",
      "name": "Video File",
      "category": "File & Path",
      "pattern": "\\.(mp4|avi|mkv|mov|wmv|flv|webm|m4v|mpeg)$",
      "flags": "i",
      "testMatch": "video.mp4",
      "testNoMatch": "audio.mp3",
      "language": "Universal",
      "useCase": "Media upload validation, file management, streaming",
      "difficulty": "Beginner",
      "description": "Matches common video file extensions for upload validation and media file filtering.",
      "related": [
        "file-extension",
        "image-file",
        "file-path-windows",
        "mime-type",
        "s3-bucket-url"
      ]
    },
    {
      "slug": "file-path-windows",
      "name": "File Path (Windows)",
      "category": "File & Path",
      "pattern": "^[a-zA-Z]:\\\\(?:[^\\\\/:*?\"<>|]+\\\\)*[^\\\\/:*?\"<>|]*$",
      "flags": "",
      "testMatch": "C:\\Users\\Documents\\file.txt",
      "testNoMatch": "/usr/local/bin",
      "language": "Universal",
      "useCase": "Windows path validation, cross-platform tools, file operations",
      "difficulty": "Intermediate",
      "description": "Validates Windows file paths with drive letter, backslash separators, and restrictions on invalid characters.",
      "related": [
        "file-extension",
        "image-file",
        "video-file",
        "mime-type",
        "s3-bucket-url"
      ]
    },
    {
      "slug": "mime-type",
      "name": "MIME Type",
      "category": "File & Path",
      "pattern": "^(application|audio|font|image|message|model|multipart|text|video)\\/[a-zA-Z0-9][a-zA-Z0-9!#$&\\-^_.+]*$",
      "flags": "",
      "testMatch": "application/json",
      "testNoMatch": "invalid/type/extra",
      "language": "Universal",
      "useCase": "Content-Type validation, file upload handling, API headers",
      "difficulty": "Intermediate",
      "description": "Validates MIME type format with standard top-level types and subtypes. Used in HTTP headers and file handling.",
      "related": [
        "file-extension",
        "image-file",
        "video-file",
        "file-path-windows",
        "s3-bucket-url"
      ]
    },
    {
      "slug": "s3-bucket-url",
      "name": "S3 Bucket URL",
      "category": "File & Path",
      "pattern": "s3:\\/\\/([a-z0-9][a-z0-9.-]{1,61}[a-z0-9])(\\/.*)?",
      "flags": "",
      "testMatch": "s3://my-bucket/path/to/file.txt",
      "testNoMatch": "http://s3.amazonaws.com/bucket",
      "language": "Universal",
      "useCase": "AWS infrastructure, cloud storage, data pipelines",
      "difficulty": "Intermediate",
      "description": "Matches S3 protocol URLs with bucket name and optional path. Used in AWS CLI commands and data engineering.",
      "related": [
        "file-extension",
        "image-file",
        "video-file",
        "file-path-windows",
        "mime-type"
      ]
    },
    {
      "slug": "social-security-number-us",
      "name": "Social Security Number (US)",
      "category": "Identity & Documents",
      "pattern": "^\\d{3}-\\d{2}-\\d{4}$",
      "flags": "",
      "testMatch": "123-45-6789",
      "testNoMatch": "123-456-789",
      "language": "Universal",
      "useCase": "PII detection, data masking, compliance scanning",
      "difficulty": "Beginner",
      "description": "Matches US Social Security Numbers in standard XXX-XX-XXXX format. Used for PII detection and data masking.",
      "related": [
        "us-zip-code",
        "us-state-code",
        "uk-postcode",
        "canadian-postal-code",
        "passport-number",
        "iban-number"
      ]
    },
    {
      "slug": "us-zip-code",
      "name": "US Zip Code",
      "category": "Identity & Documents",
      "pattern": "^\\d{5}(-\\d{4})?$",
      "flags": "",
      "testMatch": "90210-1234",
      "testNoMatch": "1234",
      "language": "Universal",
      "useCase": "Address validation, shipping forms, location services",
      "difficulty": "Beginner",
      "description": "Validates US ZIP codes in 5-digit or ZIP+4 format. Essential for shipping and address validation forms.",
      "related": [
        "social-security-number-us",
        "us-state-code",
        "uk-postcode",
        "canadian-postal-code",
        "passport-number",
        "iban-number"
      ]
    },
    {
      "slug": "us-state-code",
      "name": "US State Code",
      "category": "Identity & Documents",
      "pattern": "^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$",
      "flags": "",
      "testMatch": "CA",
      "testNoMatch": "XX",
      "language": "Universal",
      "useCase": "Address forms, state selection validation, data cleaning",
      "difficulty": "Intermediate",
      "description": "Matches valid US state and DC two-letter abbreviations. Complete list of all 50 states plus District of Columbia.",
      "related": [
        "social-security-number-us",
        "us-zip-code",
        "uk-postcode",
        "canadian-postal-code",
        "passport-number",
        "iban-number"
      ]
    },
    {
      "slug": "uk-postcode",
      "name": "UK Postcode",
      "category": "Identity & Documents",
      "pattern": "^[A-Z]{1,2}\\d[A-Z\\d]?\\s?\\d[A-Z]{2}$",
      "flags": "i",
      "testMatch": "SW1A 1AA",
      "testNoMatch": "12345",
      "language": "Universal",
      "useCase": "UK address validation, shipping, location services",
      "difficulty": "Intermediate",
      "description": "Validates UK postcodes in various formats (A1 1AA, A11 1AA, AA1 1AA, etc.) with optional space.",
      "related": [
        "social-security-number-us",
        "us-zip-code",
        "us-state-code",
        "canadian-postal-code",
        "passport-number",
        "iban-number"
      ]
    },
    {
      "slug": "canadian-postal-code",
      "name": "Canadian Postal Code",
      "category": "Identity & Documents",
      "pattern": "^[A-Z]\\d[A-Z]\\s?\\d[A-Z]\\d$",
      "flags": "i",
      "testMatch": "K1A 0B1",
      "testNoMatch": "12345",
      "language": "Universal",
      "useCase": "Canadian address validation, shipping, geolocation",
      "difficulty": "Beginner",
      "description": "Validates Canadian postal codes in A1A 1A1 format alternating letters and digits with optional space.",
      "related": [
        "social-security-number-us",
        "us-zip-code",
        "us-state-code",
        "uk-postcode",
        "passport-number",
        "iban-number"
      ]
    },
    {
      "slug": "passport-number",
      "name": "Passport Number",
      "category": "Identity & Documents",
      "pattern": "^[A-Z]{1,2}\\d{6,9}$",
      "flags": "",
      "testMatch": "AB1234567",
      "testNoMatch": "123ABC",
      "language": "Universal",
      "useCase": "Travel document validation, KYC compliance, identity verification",
      "difficulty": "Beginner",
      "description": "Matches common passport number formats with 1-2 letter prefix followed by 6-9 digits.",
      "related": [
        "social-security-number-us",
        "us-zip-code",
        "us-state-code",
        "uk-postcode",
        "canadian-postal-code",
        "iban-number"
      ]
    },
    {
      "slug": "iban-number",
      "name": "IBAN Number",
      "category": "Identity & Documents",
      "pattern": "^[A-Z]{2}\\d{2}[A-Z0-9]{4}\\d{7}([A-Z0-9]?){0,16}$",
      "flags": "",
      "testMatch": "GB29NWBK60161331926819",
      "testNoMatch": "1234567890",
      "language": "Universal",
      "useCase": "Banking, international transfers, payment processing",
      "difficulty": "Advanced",
      "description": "Validates International Bank Account Numbers with country code, check digits, bank code, and account number.",
      "related": [
        "social-security-number-us",
        "us-zip-code",
        "us-state-code",
        "uk-postcode",
        "canadian-postal-code",
        "passport-number"
      ]
    },
    {
      "slug": "vin-vehicle-identification-number",
      "name": "VIN (Vehicle Identification Number)",
      "category": "Identity & Documents",
      "pattern": "^[A-HJ-NPR-Z0-9]{17}$",
      "flags": "",
      "testMatch": "1HGBH41JXMN109186",
      "testNoMatch": "AAABBB1234",
      "language": "Universal",
      "useCase": "Automotive, insurance, vehicle registration, fraud detection",
      "difficulty": "Intermediate",
      "description": "Validates 17-character Vehicle Identification Numbers excluding I, O, and Q which can be confused with 1 and 0.",
      "related": [
        "social-security-number-us",
        "us-zip-code",
        "us-state-code",
        "uk-postcode",
        "canadian-postal-code",
        "passport-number"
      ]
    },
    {
      "slug": "balanced-parentheses",
      "name": "Balanced Parentheses",
      "category": "Advanced Patterns",
      "pattern": "\\([^()]*\\)",
      "flags": "g",
      "testMatch": "(hello world)",
      "testNoMatch": "((unclosed)",
      "language": "Universal",
      "useCase": "Expression parsing, code analysis, mathematical expressions",
      "difficulty": "Intermediate",
      "description": "Matches innermost balanced parentheses groups. Note: regex alone cannot match nested groups — use recursive patterns or parsers.",
      "related": [
        "lookahead-positive",
        "lookbehind-positive",
        "named-capture-groups",
        "non-greedy-matching",
        "atomic-group-simulation",
        "conditional-with-alternation"
      ]
    },
    {
      "slug": "lookahead-positive",
      "name": "Lookahead (Positive)",
      "category": "Advanced Patterns",
      "pattern": "\\w+(?=\\s+is)",
      "flags": "g",
      "testMatch": "JavaScript is awesome",
      "testNoMatch": "JavaScript was great",
      "language": "Universal",
      "useCase": "Context-dependent matching, NLP, text analysis",
      "difficulty": "Advanced",
      "description": "Demonstrates positive lookahead: matches a word only if followed by \" is\". Lookaheads check without consuming characters.",
      "related": [
        "balanced-parentheses",
        "lookbehind-positive",
        "named-capture-groups",
        "non-greedy-matching",
        "atomic-group-simulation",
        "conditional-with-alternation"
      ]
    },
    {
      "slug": "lookbehind-positive",
      "name": "Lookbehind (Positive)",
      "category": "Advanced Patterns",
      "pattern": "(?<=\\$)\\d+(\\.\\d{2})?",
      "flags": "g",
      "testMatch": "Price: $49.99",
      "testNoMatch": "Price: 49.99",
      "language": "JavaScript",
      "useCase": "Price extraction, financial data parsing, currency processing",
      "difficulty": "Advanced",
      "description": "Demonstrates positive lookbehind: matches numbers only when preceded by $. Extracts prices without the dollar sign.",
      "related": [
        "balanced-parentheses",
        "lookahead-positive",
        "named-capture-groups",
        "non-greedy-matching",
        "atomic-group-simulation",
        "conditional-with-alternation"
      ]
    },
    {
      "slug": "named-capture-groups",
      "name": "Named Capture Groups",
      "category": "Advanced Patterns",
      "pattern": "(?<year>\\d{4})-(?<month>\\d{2})-(?<day>\\d{2})",
      "flags": "",
      "testMatch": "2026-03-07",
      "testNoMatch": "March 7, 2026",
      "language": "JavaScript",
      "useCase": "Structured data extraction, code readability, date parsing",
      "difficulty": "Advanced",
      "description": "Demonstrates named capture groups for readable regex. Access matches by name instead of index for clearer code.",
      "related": [
        "balanced-parentheses",
        "lookahead-positive",
        "lookbehind-positive",
        "non-greedy-matching",
        "atomic-group-simulation",
        "conditional-with-alternation"
      ]
    },
    {
      "slug": "non-greedy-matching",
      "name": "Non-Greedy Matching",
      "category": "Advanced Patterns",
      "pattern": "<.+?>",
      "flags": "g",
      "testMatch": "<b>bold</b>",
      "testNoMatch": "no tags",
      "language": "Universal",
      "useCase": "HTML parsing, tag matching, minimal matching",
      "difficulty": "Intermediate",
      "description": "Shows non-greedy (lazy) matching with +? quantifier. Matches shortest possible string instead of longest.",
      "related": [
        "balanced-parentheses",
        "lookahead-positive",
        "lookbehind-positive",
        "named-capture-groups",
        "atomic-group-simulation",
        "conditional-with-alternation"
      ]
    },
    {
      "slug": "atomic-group-simulation",
      "name": "Atomic Group Simulation",
      "category": "Advanced Patterns",
      "pattern": "(?=(\\d+))\\1\\s",
      "flags": "g",
      "testMatch": "123 ",
      "testNoMatch": "abc ",
      "language": "JavaScript",
      "useCase": "Performance optimization, backtracking prevention",
      "difficulty": "Advanced",
      "description": "Simulates atomic groups in JavaScript using lookahead with backreference. Prevents catastrophic backtracking.",
      "related": [
        "balanced-parentheses",
        "lookahead-positive",
        "lookbehind-positive",
        "named-capture-groups",
        "non-greedy-matching",
        "conditional-with-alternation"
      ]
    },
    {
      "slug": "conditional-with-alternation",
      "name": "Conditional with Alternation",
      "category": "Advanced Patterns",
      "pattern": "(?:https?|ftp):\\/\\/\\S+",
      "flags": "g",
      "testMatch": "Visit ftp://files.example.com",
      "testNoMatch": "mailto:user@example.com",
      "language": "Universal",
      "useCase": "Protocol-specific URL matching, link classification",
      "difficulty": "Intermediate",
      "description": "Uses alternation within non-capturing group to match URLs with HTTP, HTTPS, or FTP protocols.",
      "related": [
        "balanced-parentheses",
        "lookahead-positive",
        "lookbehind-positive",
        "named-capture-groups",
        "non-greedy-matching",
        "atomic-group-simulation"
      ]
    },
    {
      "slug": "recursive-pattern-email-list",
      "name": "Recursive Pattern (Email List)",
      "category": "Advanced Patterns",
      "pattern": "[\\w.+-]+@[\\w-]+\\.[\\w.]+(?:\\s*,\\s*[\\w.+-]+@[\\w-]+\\.[\\w.]+)*",
      "flags": "",
      "testMatch": "a@b.com, c@d.com, e@f.com",
      "testNoMatch": "not,emails",
      "language": "Universal",
      "useCase": "Bulk email parsing, mailing list management, data import",
      "difficulty": "Advanced",
      "description": "Matches comma-separated email lists. Demonstrates pattern repetition for parsing delimited sequences.",
      "related": [
        "balanced-parentheses",
        "lookahead-positive",
        "lookbehind-positive",
        "named-capture-groups",
        "non-greedy-matching",
        "atomic-group-simulation"
      ]
    },
    {
      "slug": "sql-injection-basic",
      "name": "SQL Injection Pattern (Basic)",
      "category": "Security",
      "pattern": "(?:'\\s*(?:OR|AND)\\s+.*=.*|;\\s*(?:DROP|DELETE|UPDATE|INSERT)\\s|UNION\\s+SELECT|--\\s*$)",
      "flags": "i",
      "testMatch": "' OR 1=1 --",
      "testNoMatch": "normal search query",
      "language": "SQL",
      "useCase": "Web application firewall, input validation, security scanning",
      "difficulty": "Advanced",
      "description": "Detects common SQL injection attack patterns including OR-based, UNION, and command injection.",
      "related": [
        "xss-pattern",
        "command-injection"
      ]
    },
    {
      "slug": "docker-image",
      "name": "Docker Image Reference",
      "category": "DevOps",
      "pattern": "^(?:([a-z0-9]+(?:[._-][a-z0-9]+)*)\\/)?([a-z0-9]+(?:[._-][a-z0-9]+)*)(?::([a-zA-Z0-9][a-zA-Z0-9._-]{0,127}))?(?:@sha256:[a-fA-F0-9]{64})?$",
      "flags": "",
      "testMatch": "nginx:latest",
      "testNoMatch": "NGINX:Latest",
      "language": "Universal",
      "useCase": "Container deployment, CI/CD pipelines, registry management",
      "difficulty": "Advanced",
      "description": "Validates Docker image references including registry, repository, tag, and digest components.",
      "related": [
        "semantic-version",
        "url"
      ]
    },
    {
      "slug": "credit-card-mastercard",
      "name": "Mastercard Credit Card Number",
      "category": "Financial",
      "pattern": "^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$",
      "flags": "",
      "testMatch": "5500000000000004",
      "testNoMatch": "4111111111111111",
      "language": "Universal",
      "useCase": "Payment validation, transaction processing",
      "difficulty": "Advanced",
      "description": "Validates Mastercard numbers starting with 51-55 or 2221-2720 in 16-digit format.",
      "related": [
        "credit-card-visa",
        "credit-card-amex"
      ]
    },
    {
      "slug": "kubernetes-resource-name",
      "name": "Kubernetes Resource Name",
      "category": "DevOps",
      "pattern": "^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$",
      "flags": "",
      "testMatch": "my-deployment-v2",
      "testNoMatch": "My_Deployment",
      "language": "Universal",
      "useCase": "K8s manifest validation, resource naming, CI/CD",
      "difficulty": "Beginner",
      "description": "Validates Kubernetes resource names: lowercase alphanumeric with hyphens, max 63 characters.",
      "related": [
        "docker-image",
        "dns-hostname"
      ]
    },
    {
      "slug": "credit-card-visa",
      "name": "Visa Credit Card Number",
      "category": "Financial",
      "pattern": "^4[0-9]{12}(?:[0-9]{3})?$",
      "flags": "",
      "testMatch": "4111111111111111",
      "testNoMatch": "5111111111111111",
      "language": "Universal",
      "useCase": "Payment validation, fraud detection",
      "difficulty": "Intermediate",
      "description": "Validates Visa card numbers starting with 4, supporting 13 or 16 digit formats.",
      "related": [
        "credit-card-mastercard",
        "credit-card-amex"
      ]
    },
    {
      "slug": "log-timestamp",
      "name": "Log File Timestamp",
      "category": "System Administration",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:Z|[+-]\\d{2}:?\\d{2})?",
      "flags": "",
      "testMatch": "2024-03-15T14:30:00.123Z",
      "testNoMatch": "March 15, 2024",
      "language": "Universal",
      "useCase": "Log parsing, monitoring, time-series analysis",
      "difficulty": "Intermediate",
      "description": "Matches ISO 8601 timestamps commonly found in application and system log files.",
      "related": [
        "iso-date",
        "time-24hour"
      ]
    },
    {
      "slug": "sql-injection-detect",
      "name": "SQL Injection Pattern",
      "pattern": "(?:--|;|\\b(?:SELECT|INSERT|UPDATE|DELETE|DROP|UNION|ALTER)\\b)",
      "description": "Detect common SQL injection attempts"
    },
    {
      "slug": "log-level",
      "name": "Log Level",
      "pattern": "\\b(DEBUG|INFO|WARN|ERROR|FATAL|TRACE)\\b",
      "description": "Match standard log level keywords"
    },
    {
      "slug": "semver-version",
      "name": "Semantic Version",
      "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?$",
      "description": "Match semantic versioning strings"
    },
    {
      "slug": "terraform-resource",
      "name": "Terraform Resource Reference",
      "pattern": "\\b(?:aws|azurerm|google)_[a-z_]+\\.[a-z_]+",
      "description": "Match Terraform resource references"
    },
    {
      "slug": "graphql-query",
      "name": "GraphQL Query",
      "pattern": "\\b(query|mutation|subscription)\\s+\\w+",
      "description": "Match GraphQL operation definitions"
    },
    {
      "slug": "github-repo-url",
      "name": "GitHub Repository URL",
      "pattern": "https?://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+",
      "description": "Match GitHub repository URLs"
    },
    {
      "slug": "npm-package-name",
      "name": "NPM Package Name",
      "pattern": "^(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$",
      "description": "Match valid npm package names"
    },
    {
      "slug": "docker-image-tag",
      "name": "Docker Image Tag",
      "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*(?:/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[a-zA-Z0-9._-]+)?$",
      "description": "Match Docker image names with tags"
    },
    {
      "slug": "env-variable",
      "name": "Environment Variable",
      "pattern": "^[A-Z_][A-Z0-9_]*=.*$",
      "description": "Match KEY=value environment variable format"
    }
  ]
}