regex_extract
Applies a JavaScript regular expression to text and returns matches with groups and positions, or a replacement result. 0.001 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text | |
| flags | No | Flags, default g | |
| pattern | Yes | Regex pattern | |
| replace | No | Optional replacement string | |
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |