Viết một biểu thức chính quy
A ready-to-use “Lập trình” AI prompt template. Replace the (bracketed) parts below with your own needs.
Prompt template
Tôi muốn dùng một biểu thức chính quy (regex) để đạt được: (mô tả nhu cầu, ví dụ "khớp số điện thoại di động Việt Nam"). Hãy cho tôi một regex hoạt động được kèm giải thích từng phần và một vài ví dụ kiểm thử.
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.