เขียน regular expression
A ready-to-use “การเขียนโปรแกรม” AI prompt template. Replace the (bracketed) parts below with your own needs.
Prompt template
ฉันต้องการใช้ regular expression (regex) เพื่อทำสิ่งนี้: (อธิบายความต้องการ เช่น "จับคู่หมายเลขโทรศัพท์มือถือของไทย") ช่วยให้ regex ที่ใช้งานได้ พร้อมคำอธิบายแบบทีละส่วน และตัวอย่างทดสอบสองสามตัวอย่าง
How to use this prompt
- Copy the whole prompt above and paste it into 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.