Build and understand complex regular expressions
I need a regex pattern for the following requirement: What I want to match: [DESCRIBE IN PLAIN ENGLISH] Examples that SHOULD match: [LIST EXAMPLES] Examples that should NOT match: [LIST NON-EXAMPLES] Target language/engine: [JS/PYTHON/PCRE/POSIX/ETC] Please provide: 1. The regex pattern 2. Step-by-step explanation of each part 3. Test cases validating the pattern 4. Edge cases to be aware of 5. Performance considerations 6. Alternative patterns if applicable
I need a regex pattern for the following requirement: What I want to match: [DESCRIBE IN PLAIN ENGLISH] Examples that SHOULD match: [LIST EXAMPLES] Examples that should NOT match: [LIST NON-EXAMPLES] Target language/engine: [JS/PYTHON/PCRE/POSIX/ETC] Please provide: 1. The regex pattern 2. Step-by-step explanation of each part 3. Test cases validating the pattern 4. Edge cases to be aware of 5. Performance considerations 6. Alternative patterns if applicable
This prompt is released under CC0 (Public Domain). You are free to use it for any purpose without attribution.
Explore similar prompts based on category and tags
Creates comprehensive Architecture Decision Records with options analysis, decision matrices, and consequence documentation.
Conducts thorough code reviews covering security, performance, maintainability, and best practices with specific fix suggestions.
Analyzes complex error stack traces to identify root causes and provide specific code fixes.
Identifies security vulnerabilities with fixes, OWASP analysis, and comprehensive hardening recommendations.