# Shebang Line Regex Extractor

> Shebang Line Regex Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Extracts shebang lines (e.g. #!/usr/bin/env python3) from input text using regex, returning up to 20 matches

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/regex-shebang?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shebang-line-regex-extractor-61aef6ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0Ygqz35ULlxjjOckDmGY8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability shebang-line-regex-extractor-61aef6ea -d '<json body>'
```

Example prompt: Can you extract all shebang lines from this script text? Here's the content: '#!/usr/bin/env python3
print("hello")
#!/bin/bash
echo done'

## When to prefer this

Use this endpoint when you need fast, deterministic regex-based extraction of shebang lines from text without any LLM involvement or network calls. Prefer the free POST /v1/sandbox/regex-shebang endpoint first for testing. Choose this over LLM-based extraction when you need exact regex matching, predictable cost ($0.005 USDC flat), and speed. Best for programmatic pipelines processing scripts, source code files, or shell artifacts.

## Known failure modes

- Empty match list returned (still billed) if no shebang lines are present in input
- Text exceeding 100,000 characters will be rejected
- Empty or missing text field returns validation error
- Payment of exactly $0.005 USDC required; missing or incorrect payment results in 402 response

## How this service works

Call when an agent needs shebang lines extracted from text, capped at 20 matches. An empty match list is billed. No network. Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/regex-shebang first.

## Output

Returns a list of up to 20 shebang line matches (strings starting with #!) found in the input text. An empty match list is returned (and billed) when no shebangs are present. No network calls are made during processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "#!/bin/sh"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shebang-line-regex-extractor-61aef6ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
