🏠 Startseite
Vergleiche
📊 Alle Benchmarks 🦖 Dinosaurier v1 🦖 Dinosaurier v2 ✅ To-Do-Listen-Apps 🎨 Kreative freie Seiten 🎯 FSACB - Ultimatives Showcase 🌍 Übersetzungs-Benchmark
Modelle
🏆 Top 10 Modelle 🆓 Kostenlose Modelle 📋 Alle Modelle ⚙️ Kilo Code
Ressourcen
💬 Prompt-Bibliothek 📖 KI-Glossar 🔗 Nützliche 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.