Skip to content
PromptVan
Sign In
Prompt

Regex Builder & Tester

By @marco_sales ยท Apr 16, 2026

Description

Builds a regex from a plain-language spec, explains each part, and lists test strings that should and should not match.

Prompt

38 words
Write a regex for this requirement: {{requirement}}. Provide: the pattern, a breakdown of each component, 5 strings that should match, and 5 that should NOT. Note any edge cases the pattern deliberately ignores. Keep it readable over clever.

How to use

Copy the prompt and paste it into your AI tool of choice. It works best with claude-sonnet-4. See more prompts in Coding for related workflows.

More in Coding

Reviews

Loading reviews

Comments (0)

?

AI model

claude-sonnet-4

Category

Coding

Visibility

public

Last updated

Jul 3, 2026

Variables

None