JavaScript Problem: Switching Name Order Using Capturing Groups in Regular Expressions

preview_player
Показать описание
In this JavaScript problem we look at switching the first name and last name for several names in an array. However, we take a unique approach by using capturing groups in regular expressions with the replace method of strings.

For more resources on JavaScript:

New Mastering Regular Expressions in JavaScript:

Courses offered on Udemy: Getting Started or Advanced Topics at a huge discount:

Tutorials referred to in this video:

#javascript #AllThingsJavaScriptLLC
Рекомендации по теме
Комментарии
Автор

By far the best explanation of capturing/groups I've come across. Thank you!

commacash
Автор

These problem solving series can hardly found in youtube. Thank you very much, Please continue with the problem solving series. We can learn a lot from it.

rotrose
Автор

I was expecting an expression that would be so intricate when I started the video that might bend the starlight as it passed behind a sun, but instead as I watched it it became so obviously simple it was almost funny. Good video, thanks

Knards
Автор

thankyou steven for your wonderful examples

shabnamnaaz
Автор

Thank you sir, this video helped me a lot to solve "spinal tap".

chamnil
Автор

I really want to understand when i should use quantifiers and flags, yes i know this is sort of generalised, so in this case for example why didn't you add (g) flag in the end of your regexp..
Thank You

melekkhlif