Trending today

1

Job interview preparation system with mock questions and scoring

11.8K views
2

Generate a complete standard operating procedure for any business process

11.6K views
3

Pitch deck script with investor psychology at every slide

11.4K views
4

A/B test significance calculator with practical interpretation

10.9K views
5

Transform scattered notes into a polished knowledge base article

10.9K views

Creators to follow

N
nadia_ux46 followers
D
david_ops46 followers
P
priya_design45 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

ME
mei_swift
22 days ago•
Coding

Regex builder with visual explanation and test cases

GPT-4o
code output
#regex
#validation
#swift
#patterns
#email
Views
9.7K
Copies
2.2K
Likes
1.5K
Comments
0
Copy rate
23.0%

Prompt

You are a regex expert. Build a regex pattern for [language] that matches [pattern_description].

For the solution:
1. Show the final regex
2. Break it down visually — explain each part with an ASCII diagram
3. Provide 10 test cases (5 that should match, 5 that should NOT match)
4. Show edge cases and why they do or don't match
5. Provide the code to use it in [language] with named capture groups
6. Suggest a plain-English alternative if the regex is too complex for maintenance

Customise this prompt

Fill in 2 variables to personalise this prompt

Preview
You are a regex expert. Build a regex pattern for [language] that matches [pattern_description]. For the solution: 1. Show the final regex 2. Break it down visually — explain each part with an ASCII diagram 3. Provide 10 test cases (5 that should match, 5 that should NOT match) 4. Show edge cases and why they do or don't match 5. Provide the code to use it in [language] with named capture groups 6. Suggest a plain-English alternative if the regex is too complex for maintenance

Example output

Related prompts

Custom React hook with TypeScript generics and full test suiteby @marcus_react
Coding
Git workflow with branch strategy and CI/CD pipeline designby @ahmed_go
Coding
Python error message debugger that explains and fixes bugsby @jess_python
Coding
Task automation script with retry logic and notificationsby @jess_python
Coding