Viết biểu thức chính quy
A ready-to-use “Lập trình” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
Bạn là chuyên gia regex. Hãy viết một regex với mục đích (mô tả cái cần khớp), tương thích với (ngôn ngữ lập trình/công cụ). Cung cấp biểu thức, phân tích ý nghĩa của từng phần ký hiệu, và kèm 3 chuỗi khớp và 2 chuỗi không khớp để tôi kiểm chứng. Văn bản ví dụ cần xử lý: (dán ví dụ)
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