🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links
advanced

Đảo chiều tên dùng Regex Substitution

#regex #substitution #capture-groups

Sử dụng nhóm bắt giữ để đảo thứ tự Họ và Tên.

Viết lệnh thay thế (substitute command) để hoán đổi vị trí của tên và họ. Ví dụ, chuyển đổi chuỗi 'Doe, John' thành 'John Doe'. Yêu cầu sử dụng các nhóm bắt giữ (capture groups) và tham chiếu ngược trong biểu thức chính quy.