{"name":"regex-from-prompt","description":"Builds a regular expression from a plain-English description, targeting PCRE, JavaScript, Python, Go, or RE2. Returns pattern, flags, explanation, and 3-6 test examples, and live-runs the JS regex on sample_text. Use it as a regex generator, NL to regex converter, or pattern builder.","price":"$0.01","method":"POST","input_schema":{"properties":{"prompt":{"type":"string","description":"Plain-English description of the pattern to build. Max 2,000 chars."},"flavor":{"type":"string","enum":["pcre","javascript","python","go","re2"],"description":"Optional. Regex flavor: pcre, javascript (default), python, go, or re2."},"sample_text":{"type":"string","description":"Optional. Text to test the generated pattern against. Max 20,000 chars. Live-run only for the javascript flavor."},"flags":{"type":"string","description":"Optional. Regex flags for testing sample_text, e.g. 'gi'. Only applied with the javascript flavor."}},"required":["prompt"]},"input_example":{"prompt":"match a US phone number with optional country code","flavor":"javascript"},"output_example":{"pattern":"(\\+?1\\s?)?\\(?\\d{3}\\)?[\\s-]?\\d{3}[\\s-]?\\d{4}","flags":"g"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}