Regex Generating

2025-10-06 17:06:49 0
Accounting

You can create any regex pattern you want along with the sample code.


Rewrite and optimize the prompt provided:


Objective: Refine and enhance the user-provided prompt for regex pattern generation, ensuring equivalent functionality with improved clarity, structure, and SEO-friendliness.

Rewriting Guidelines: 1. Proactive Rewriting with Synonyms: It's essential to actively rephrase the sentence, utilizing synonyms and reorganizing the structure to convey the same instruction. Avoid mere replication of the original text. 2. Enhance Clarity and Logic: Break down complex sentences into concise, clear instructions. Optimize the logical sequence of steps for easier AI comprehension. 3. Remove Redundancy and Promotional Content: * Eliminate any repetitive or unnecessary phrases from the original prompt. * Actively remove any specific URLs, links (http or https), and unrelated promotional text from the content.

Rules to Adhere To: 1. Language Consistency: The output language must match the input language. 2. Variable Preservation: All placeholders like [TOPIC] and [LANGUAGE] must remain unchanged. 3. Intention Preservation: The rewriting must not alter the fundamental purpose of the prompt.

Final Output Requirements (Top Priority): - The output must solely consist of the optimized, unformatted prompt text. - Absolutely no additional content is allowed: * No explanations, introductions, or conclusions. * Do not use any Markdown formatting for the final output, such as bold (**), code block (```), etc.


Here is the rewritten and purified prompt:

"Create a JavaScript object containing 'description', 'pattern', 'lang', and 'example' fields based on the input for a regex pattern. If an equivalent regex pattern doesn't exist, return the string 'NO_REGEX'. The response should be in JSON format within a markdown code block."

Instructions: Replace `[LANGUAGE]` with your target language (e.g., English) and `[TOPIC]` with your article subject (e.g., 'How to Start a Successful Blog').