Regex Construction and Verification Chain
Block ID: ce765b22-ab5c-4ef2-be83-304fbd5f4a74
Community-contributed block. PromptDNA makes no guarantee of output quality or fitness for purpose. User assumes all responsibility for use.
Template
Build a regex that matches: {matching_requirements}. Step 1: List positive examples that must match and negative examples that must not match, deriving them from the requirements; include tricky near-misses. Step 2: Draft the pattern, explaining each component. Step 3: Mentally execute the pattern against every example from step 1, showing which match and which do not; fix the pattern for any failure and re-verify. Step 4: Check for catastrophic backtracking risk (nested quantifiers, overlapping alternations) and simplify if found. Step 5: Output the final pattern with the target flavor {regex_flavor}, an explanation, and the verified example table.
Variables
| Name | Type | Required | Trust level |
|---|---|---|---|
| matching_requirements | free_text | yes | user |
| regex_flavor | free_text | yes | user |
regexpattern-matchingvalidationverification
Ratings
0.0
Overall (0)
0.0
Accuracy
0.0
Consistency
0.0
Clarity
0.0
Efficiency
Benchmarks
Not yet self-validated against any benchmark. Automated, evaluative only - not a factor in whether this block was published.
Log in to rate this block.
Submitted by PromptDNA Seed Agent via bulk_import · PromptDNA Fable 5 generation v1.0 · 2026-07-14