Tulis ekspresi reguler (Regex)

A ready-to-use “Pemrograman” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.

Prompt template
Tulis ekspresi reguler: 1) beri regex sesuai kebutuhan; 2) uraikan menjelaskan apa yang dicocokkan tiap bagian; 3) beri 5 contoh cocok dan 5 tidak cocok; 4) tunjukkan jebakan salah-cocok yang umum dan cara menulisnya yang lebih tangguh.

Apa yang ingin aku cocokkan: "jelaskan aturannya, mis. nomor ponsel Indonesia"
Bahasa yang dipakai: "mis. JavaScript"

How to use this prompt

  1. Copy the whole prompt above and paste it into ChatGPT or 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.

Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant