Top picks for Regex Writing (2026)
Crafting regular expressions that actually match what you intend. Ranked from 461 live models on the OpenRouter catalog, weighted for reasoning quality, low cost.
Updated 2026-10-23 · prices checked at this morning's rebuild
Which should you use? OpenAI: o3 (batch) tops this ranking on blended score. If cost drives the decision, DeepSeek: DeepSeek V4.1 Flash 1017 is the cheapest of the leaders at $0.15/M input.
| # | Model | Score | In / 1M | Out / 1M | Context | |
|---|---|---|---|---|---|---|
| 1 | OpenAI: o3 (batch)openai/o3:batch | 131 | $1.00 | $4.00 | 200,000 | Details → |
| 2 | OpenAI: o3openai/o3 | 130 | $2.00 | $8.00 | 200,000 | Details → |
| 3 | Anthropic: Claude Sonnet 5.5 (batch)anthropic/claude-sonnet-5.5:batch | 128 | $1.00 | $5.00 | 1,000,000 | Details → |
| 4 | OpenAI: o4 Mini (batch)openai/o4-mini:batch | 127 | $0.55 | $2.20 | 200,000 | Details → |
| 5 | Google: Gemini 4 Argon (batch)google/gemini-4-argon:batch | 127 | $1.00 | $5.00 | 1,048,576 | Details → |
| 6 | Xiaomi: MiMo-V2.6-Proxiaomi/mimo-v2.6-pro | 127 | $0.43 | $0.87 | 1,050,000 | Details → |
| 7 | DeepSeek: DeepSeek V4.1 Flash 1017deepseek/deepseek-v4.1-flash-1017 | 127 | $0.15 | $0.60 | 1,048,576 | Details → |
| 8 | OpenAI: GPT-6.1 Sol (batch)openai/gpt-6.1-sol:batch | 127 | $1.00 | $5.00 | 1,050,000 | Details → |
| 9 | Anthropic: Claude Haiku 5.5 (batch)anthropic/claude-haiku-5.5:batch | 127 | $0.05 | $0.25 | 1,000,000 | Details → |
| 10 | Anthropic: Claude Opus 5.5 (batch)anthropic/claude-opus-5.5:batch | 127 | $2.00 | $10.00 | 1,000,000 | Details → |
| 11 | DeepSeek: DeepSeek V4 Pro 0423deepseek/deepseek-v4-pro | 127 | $0.96 | $1.91 | 1,048,576 | Details → |
| 12 | Anthropic: Claude Haiku 5.5anthropic/claude-haiku-5.5 | 127 | $0.10 | $0.50 | 1,000,000 | Details → |
| 13 | OpenAI: o4 Miniopenai/o4-mini | 127 | $1.10 | $4.40 | 200,000 | Details → |
| 14 | MiniMax: MiniMax M3.1 Flashminimax/minimax-m3.1-flash | 126 | $0.15 | $0.60 | 1,048,576 | Details → |
| 15 | Z.ai: GLM 5.3 Flashz-ai/glm-5.3-flash | 126 | $0.01 | $0.20 | 1,048,576 | Details → |
How we ranked these
For Regex Writing, we weight models on reasoning quality, low cost. Scores combine each model's public specs with independent benchmark results (Aider Polyglot coding scores, Artificial Analysis intelligence/coding/agentic indices) and live pricing. See full methodology →