เขียน 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

  1. Copy the whole prompt above and paste it into ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.