Categories

Glob to Regex

Convert file matching patterns (Glob) to regular expressions

Convert Glob patterns like `src/**/*.ts` to standard regular expressions. Useful for understanding Glob patterns and creating custom file matching logic.

Support brace expansion like {a,b,c}

Support ** for recursive directory matching

Match regardless of case

One string per line. Results will show which strings match.

API Documentation

Request Endpoint

POST /en/api/tools/glob-to-regex

Request Parameters

Parameter Name Type Required Description
globPattern text Yes -
extended checkbox No Support brace expansion like {a,b,c}
globstar checkbox No Support ** for recursive directory matching
caseInsensitive checkbox No Match regardless of case
testString textarea No One string per line. Results will show which strings match.

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-glob-to-regex": {
      "name": "glob-to-regex",
      "description": "Convert file matching patterns (Glob) to regular expressions",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=glob-to-regex",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]