Regular Expressions · Schema
Regular Expression Pattern
Schema for describing a regular expression pattern with its metadata, use case, and supported flavors.
Pattern MatchingProgrammingString ManipulationText ProcessingValidationSearchParsing
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier for the pattern. |
| name | string | Human-readable name for the pattern. |
| description | string | What the pattern matches and its intended use. |
| pattern | string | The regular expression pattern string. |
| flags | string | Default flags for the pattern (e.g., 'gi', 'im'). |
| flavor | string | The regex flavor this pattern is written for. |
| tags | array | Categorization tags for the pattern. |
| useCase | string | Primary use case for this pattern (e.g., 'Email Validation', 'URL Parsing', 'Date Extraction'). |
| examples | object | Example strings that demonstrate the pattern. |
| groups | array | Description of capturing groups in the pattern. |
| performance | object | Performance characteristics and potential issues. |
| created | string | Date the pattern was created. |
| modified | string | Date the pattern was last modified. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api-evangelist.github.io/regular-expressions/json-schema/regular-expressions-pattern-schema.json",
"title": "Regular Expression Pattern",
"description": "Schema for describing a regular expression pattern with its metadata, use case, and supported flavors.",
"type": "object",
"required": ["pattern"],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the pattern."
},
"name": {
"type": "string",
"description": "Human-readable name for the pattern."
},
"description": {
"type": "string",
"description": "What the pattern matches and its intended use."
},
"pattern": {
"type": "string",
"description": "The regular expression pattern string."
},
"flags": {
"type": "string",
"description": "Default flags for the pattern (e.g., 'gi', 'im')."
},
"flavor": {
"type": "string",
"description": "The regex flavor this pattern is written for.",
"enum": ["PCRE", "PCRE2", "JavaScript", "Python", "Java", ".NET", "Ruby", "Go", "POSIX ERE", "POSIX BRE"]
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Categorization tags for the pattern."
},
"useCase": {
"type": "string",
"description": "Primary use case for this pattern (e.g., 'Email Validation', 'URL Parsing', 'Date Extraction')."
},
"examples": {
"type": "object",
"description": "Example strings that demonstrate the pattern.",
"properties": {
"matching": {
"type": "array",
"items": { "type": "string" },
"description": "Strings that match the pattern."
},
"nonMatching": {
"type": "array",
"items": { "type": "string" },
"description": "Strings that do not match the pattern."
}
}
},
"groups": {
"type": "array",
"description": "Description of capturing groups in the pattern.",
"items": {
"type": "object",
"required": ["index"],
"properties": {
"index": {
"type": "integer",
"description": "Group number (1-based)."
},
"name": {
"type": "string",
"description": "Named group identifier, if using named captures."
},
"description": {
"type": "string",
"description": "What this group captures."
}
}
}
},
"performance": {
"type": "object",
"description": "Performance characteristics and potential issues.",
"properties": {
"backtracking": {
"type": "boolean",
"description": "Whether this pattern uses significant backtracking."
},
"catastrophicBacktracking": {
"type": "boolean",
"description": "Whether this pattern could exhibit catastrophic backtracking (ReDoS vulnerability)."
},
"notes": {
"type": "string",
"description": "Performance notes and recommendations."
}
}
},
"created": {
"type": "string",
"format": "date",
"description": "Date the pattern was created."
},
"modified": {
"type": "string",
"format": "date",
"description": "Date the pattern was last modified."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/regular-expressions-pattern"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.