{
    "url": "https://delaparra-services.nl/skills/regex-builder",
    "locale": "en",
    "title": "Regex builder | DeLaParra Services",
    "description": "Use when the user asks to create, debug, explain, validate, or optimize a regular expression or replacement for a specific engine. Verifies representative matches, non-matches, captures, escaping, portability limits, and backtracking risk in the target runtime.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/regex-builder",
        "nl": "https://delaparra-services.nl/nl/skills/regex-builder"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/skills/regex-builder.csv",
        "md": "https://delaparra-services.nl/skills/regex-builder.md",
        "json": "https://delaparra-services.nl/skills/regex-builder.json",
        "zip": "https://delaparra-services.nl/skills/regex-builder.zip",
        "pdf": "https://delaparra-services.nl/skills/regex-builder.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/skills/regex-builder.csv",
            "encodingFormat": "text/csv",
            "name": "regex-builder.csv"
        },
        {
            "url": "https://delaparra-services.nl/skills/regex-builder.json",
            "encodingFormat": "application/json",
            "name": "regex-builder.json"
        },
        {
            "url": "https://delaparra-services.nl/skills/regex-builder.md",
            "encodingFormat": "text/markdown",
            "name": "regex-builder.md"
        },
        {
            "url": "https://delaparra-services.nl/skills/regex-builder.pdf",
            "encodingFormat": "application/pdf",
            "name": "regex-builder.pdf"
        },
        {
            "url": "https://delaparra-services.nl/skills/regex-builder.zip",
            "encodingFormat": "application/zip",
            "name": "regex-builder.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/regex-builder/download",
            "encodingFormat": "application/zip",
            "name": "regex-builder-files.zip"
        }
    ],
    "markdown": "# Regex builder\n\n \n\nUse when the user asks to create, debug, explain, validate, or optimize a regular expression or replacement for a specific engine. Verifies representative matches, non-matches, captures, escaping, portability limits, and backtracking risk in the target runtime.\n\n \n\n**Licence** MIT\n\n \n\n**Source** jmerta/codex-skills\n\n [Download zip](<https://delaparra-services.nl/skills/regex-builder/download>)   \n\n# Regex builder\n\n \n\n## Define the contract\n\n \n\nConfirm the target engine and version, flags, multiline behavior, input boundary, capture or replacement needs, and representative matches and non-matches. Infer these from the consuming code when possible; ask only for information the repository cannot answer.\n\n \n\nDo not present a pattern as portable across JavaScript, Python, Java, .NET, RE2, PCRE2, or a command-line tool unless the common subset was verified.\n\n \n\n## Build and test\n\n \n\n1. Start with the smallest literal structure that distinguishes the samples. \n1. Add anchors, boundaries, separators, Unicode handling, and capture groups only when required by the contract. \n1. Test with the actual target engine. Use ` rg ` only for ripgrep's default engine or ` rg -P ` for its PCRE2 mode; use the application runtime for other flavors. \n1. Verify every supplied match and non-match. Add boundary cases for empty input, adjacent matches, newlines, and Unicode. For untrusted input, include a long adversarial near-miss or non-match, measure its runtime, and require an application input bound when the engine has no timeout. \n1. Check shell and string-literal escaping separately from regex syntax. \n1. Avoid nested ambiguous quantifiers and unbounded backtracking on untrusted input. Prefer a simpler parser when the grammar or safety requirements exceed a readable regex.\n\n \n\n## Deliver\n\n \n\nProvide:\n\n \n\n- the regex and flags; \n- its target engine and required version or features; \n- a capture-group or replacement map when used; \n- one runnable verification in the target runtime with expected results; \n- known limitations and any backtracking or input-size risk.\n\n \n\n## Files\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md ` \n- ` agents/openai.yaml `\n\n \n\n## Related terms\n\n \n\n- [/A (Anchored)](<https://delaparra-services.nl/knowledge-hub/a-anchored>) \n- [/a (ASCII-only)](<https://delaparra-services.nl/knowledge-hub/a-ascii-only>) \n- [/D (Dollar End Only)](<https://delaparra-services.nl/knowledge-hub/d-dollar-end-only>) \n- [/d (hasIndices)](<https://delaparra-services.nl/knowledge-hub/d-hasindices>) \n- [/e (Eval (deprecated))](<https://delaparra-services.nl/knowledge-hub/e-eval-deprecated>) \n- [/g (Global)](<https://delaparra-services.nl/knowledge-hub/g-global>) \n- [/I (Case-Insensitive (POSIX / grep))](<https://delaparra-services.nl/knowledge-hub/i-case-insensitive-posix-grep>) \n- [/i (Case-Insensitive)](<https://delaparra-services.nl/knowledge-hub/i-case-insensitive>) \n- [/J (Duplicate Named Groups)](<https://delaparra-services.nl/knowledge-hub/j-duplicate-named-groups>) \n- [/L (Locale-dependent)](<https://delaparra-services.nl/knowledge-hub/l-locale-dependent>) \n- [/m (Multiline)](<https://delaparra-services.nl/knowledge-hub/m-multiline>) \n- [/n (Explicit Capture)](<https://delaparra-services.nl/knowledge-hub/n-explicit-capture>) \n- [/o (Once (interpolate once))](<https://delaparra-services.nl/knowledge-hub/o-once-interpolate-once>) \n- [/r (Right-to-Left)](<https://delaparra-services.nl/knowledge-hub/r-right-to-left>) \n- [/s (DotAll (single line))](<https://delaparra-services.nl/knowledge-hub/s-dotall-single-line>) \n- [/U (Ungreedy)](<https://delaparra-services.nl/knowledge-hub/u-ungreedy>) \n- [/u (Unicode)](<https://delaparra-services.nl/knowledge-hub/u-unicode>) \n- [/v (Unicode Sets)](<https://delaparra-services.nl/knowledge-hub/v-unicode-sets>) \n- [/x (Extended / Verbose)](<https://delaparra-services.nl/knowledge-hub/x-extended-verbose>) \n- [/y (Sticky)](<https://delaparra-services.nl/knowledge-hub/y-sticky>)\n\n \n\n[Installing an agent skill in Claude Code, Codex, Cursor and Copilot](<https://delaparra-services.nl/manuals/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/skills/regex-builder)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/skills/regex-builder#webpage",
                "url": "https://delaparra-services.nl/skills/regex-builder",
                "name": "Regex builder | DeLaParra Services",
                "description": "Use when the user asks to create, debug, explain, validate, or optimize a regular expression or replacement for a specific engine. Verifies representative matches, non-matches, captures, escaping, portability limits, and backtracking risk in the target runtime.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/skills/regex-builder#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/skills/regex-builder#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Regex builder"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/skills/regex-builder#skill",
                "url": "https://delaparra-services.nl/skills/regex-builder",
                "name": "Regex builder",
                "description": "Use when the user asks to create, debug, explain, validate, or optimize a regular expression or replacement for a specific engine. Verifies representative matches, non-matches, captures, escaping, portability limits, and backtracking risk in the target runtime.",
                "inLanguage": "en",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/skills/regex-builder#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/skills/regex-builder#dataset",
                "name": "Regex builder",
                "description": "Use when the user asks to create, debug, explain, validate, or optimize a regular expression or replacement for a specific engine. Verifies representative matches, non-matches, captures, escaping, portability limits, and backtracking risk in the target runtime.",
                "url": "https://delaparra-services.nl/skills/regex-builder",
                "identifier": "https://delaparra-services.nl/skills/regex-builder#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/skills/regex-builder#skill"
                },
                "creditText": "jmerta/codex-skills",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "dateModified": "2026-11-28T14:00:12+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#skills",
                    "name": "Skills for AI coding assistants",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "regex-builder.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/skills/regex-builder.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "regex-builder.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/skills/regex-builder.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "regex-builder.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/skills/regex-builder.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "regex-builder.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/skills/regex-builder.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "regex-builder.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/regex-builder.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "regex-builder-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/regex-builder/download",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}