เขียน regular expression
A ready-to-use “การเขียนโปรแกรม” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
คุณคือผู้เชี่ยวชาญ regex ช่วยเขียน regex สำหรับวัตถุประสงค์ (อธิบายสิ่งที่ต้องการจับคู่) เข้ากันได้กับ (ภาษาโปรแกรม/เครื่องมือ) ให้ตัวนิพจน์เอง แตกความหมายของสัญลักษณ์แต่ละส่วนทีละส่วน และแนบสตริงทดสอบที่จับคู่ได้ 3 อันและจับคู่ไม่ได้ 2 อันให้ฉันตรวจสอบ ตัวอย่างข้อความที่ต้องจัดการ: (วางตัวอย่าง)
How to use this prompt
- Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant