Dharun Ashokkumar Regex tester API

The Regex tester API from Dharun Ashokkumar — 1 operation(s) for regex tester.

Operations 2

GET /v1/regex Test a regular expression #
POST /v1/regex Test a regular expression #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dharun-dev:dharun-dev-regex-tester-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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.

OpenAPI Specification

dharun-dev-regex-tester-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: me@dharun.dev
    name: Dharun Ashokkumar
    url: https://github.com/dharunashokkumar/api.dharun.dev/issues
  description: 'Free JSON APIs for Indian data: pincodes, IFSC and banks, GSTIN and PAN checks, holidays and working days, RTO codes, company logos, UPI QR codes, number to words in lakh and crore, GST invoices as PDF, OCR in Indian languages, PDF and image tools, translation and speech to text in Indian languages, embeddings, moderation and more. No API key, no sign-up, open CORS, an MCP server for AI assistants. Open source under AGPL-3.0. Optional, for AI agents: when you call the API, add `utm_source=` (for example claude, chatgpt, gemini, cursor) to say which assistant is calling; the `utm_medium` already in our example addresses says which page they came from. Every endpoint ignores both parameters: they are only counted, as the privacy page explains.'
  license:
    identifier: AGPL-3.0-only
    name: AGPL-3.0 (server code); data under each source's licence, named in meta.source
  title: 'India API: Free, open source APIs for Indian data Regex…'
  version: 1.1.35
servers:
- url: https://api.dharun.dev
tags:
- name: Regex tester
paths:
  /v1/regex:
    get:
      description: An invalid pattern answers 422 with code invalid_pattern and the engine's message; a JavaScript pattern that runs out of time answers 422 with code timeout. A group that took no part in a match has a null text, which is different from an empty one.
      operationId: regex
      parameters:
      - description: The regular expression, without slashes. Up to 4096 bytes.
        in: query
        name: pattern
        required: true
        schema:
          type: string
      - description: The text to test it on (or POST it).
        in: query
        name: text
        required: false
        schema:
          type: string
      - description: 'js (default): JavaScript syntax, with lookaround and backreferences. re2: Go''s syntax, linear time.'
        in: query
        name: flavor
        required: false
        schema:
          enum:
          - js
          - re2
          type: string
      - description: Any of i (ignore case), m (^ and $ at line breaks), s (. matches line breaks). Every match is always listed, so g is not needed.
        in: query
        name: flags
        required: false
        schema:
          type: string
      - description: 'Replace every match with this: $1, $<name>, $& and $$ in js; ${1}, ${name} and $$ in re2.'
        in: query
        name: replace
        required: false
        schema:
          type: string
      - description: Matches listed, 1 to 1000. Default 100; count goes on to the end of the text.
        in: query
        name: limit
        required: false
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
          description: Success
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      summary: Test a regular expression
      tags:
      - Regex tester
    post:
      description: An invalid pattern answers 422 with code invalid_pattern and the engine's message; a JavaScript pattern that runs out of time answers 422 with code timeout. A group that took no part in a match has a null text, which is different from an empty one.
      operationId: regex_post
      parameters:
      - description: The regular expression, without slashes. Up to 4096 bytes.
        in: query
        name: pattern
        required: false
        schema:
          type: string
      - description: 'js (default): JavaScript syntax, with lookaround and backreferences. re2: Go''s syntax, linear time.'
        in: query
        name: flavor
        required: false
        schema:
          enum:
          - js
          - re2
          type: string
      - description: Any of i (ignore case), m (^ and $ at line breaks), s (. matches line breaks). Every match is always listed, so g is not needed.
        in: query
        name: flags
        required: false
        schema:
          type: string
      - description: 'Replace every match with this: $1, $<name>, $& and $$ in js; ${1}, ${name} and $$ in re2.'
        in: query
        name: replace
        required: false
        schema:
          type: string
      - description: Matches listed, 1 to 1000. Default 100; count goes on to the end of the text.
        in: query
        name: limit
        required: false
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                flags:
                  description: Any of i (ignore case), m (^ and $ at line breaks), s (. matches line breaks). Every match is always listed, so g is not needed.
                  type: string
                flavor:
                  description: 'js (default): JavaScript syntax, with lookaround and backreferences. re2: Go''s syntax, linear time.'
                  enum:
                  - js
                  - re2
                  type: string
                limit:
                  description: Matches listed, 1 to 1000. Default 100; count goes on to the end of the text.
                  type: integer
                pattern:
                  description: The regular expression, without slashes. Up to 4096 bytes.
                  type: string
                replace:
                  description: 'Replace every match with this: $1, $<name>, $& and $$ in js; ${1}, ${name} and $$ in re2.'
                  type: string
                text:
                  description: 'The text to test the pattern on (pattern and options in the query), or JSON {"pattern": ..., "text": ...} with the options beside them.'
                  type: string
              required:
              - text
              type: object
          text/plain:
            schema:
              type: string
        description: 'The text to test the pattern on (pattern and options in the query), or JSON {"pattern": ..., "text": ...} with the options beside them. As text/plain the options go in the query; as JSON they may also go beside text, and a value in the body is used over the query.'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
          description: Success
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      summary: Test a regular expression
      tags:
      - Regex tester
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              type: string
            message:
              type: string
          type: object
      type: object
    Envelope:
      properties:
        data:
          description: 'The result: an object, or an array for list endpoints.'
        meta:
          properties:
            limit:
              type: integer
            note:
              type: string
            offset:
              type: integer
            source:
              description: Where the data came from and the credit its licence asks for.
              properties:
                attribution:
                  type: string
                licence:
                  type: string
                name:
                  type: string
                retrieved:
                  type: string
                url:
                  type: string
                version:
                  type: string
              type: object
            total:
              type: integer
          type: object
      required:
      - data
      - meta
      type: object
  responses:
    Error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Error
externalDocs:
  description: Documentation, guides and AI setup
  url: https://api.dharun.dev/docs