filmov
tv
Capturing Groups to Search and Replace Text with Regular Expressions
Показать описание
Searching and replacing text with regular expressions gives you the ability to sanitize and reformat data with more power and flexibility than you can otherwise. In this video you'll learn how to use capturing groups and the automatic variables they establish when searching and replacing with them. The difference between the automatic variable $0 and capturing group variables $1, $2, $3, and so on are discussed.
You are Encouraged to Follow Along! Here are the instructions to do so:
2. In VSCode, Go to View, then Command Palette, type Git: Clone and press enter
4. Select the Folder/Directory you would like to save the project, press ok. Open the project.
5. In the Files Explorer Pane in VS Code, you should now see the three .txt files we're using in the videos:
A Mysterious, Little Course on Regular Expressions
This is the fourth video in "A Mysterious, Little Course on Regular Expressions", a short introductory course on applied regular expressions. The first video introduced the "AND THEN" (concatenation) operator and gave instructions for setting up your computer with Visual Studio Code and the course's project repository with the same files used in the video. The second video introduced the "OR" operator (alternation / union). The third and previous video was on repetition using the quantifier/closure operator.
About me: Hey, hey! I'm Kris Jordan (he/him/his), a professor who teaches computer science at the University of North Carolina at Chapel Hill. Back when I first tried to learn regular expressions it felt like a lot of weird, cryptic incantations to memorize. I couldn't separate the essential concepts to understand from the merely convenient shorthand add-ons. When I was was taught their theoretical basis, I struggled to connect academic notation and abstract examples with real-world syntax and concrete applications. So I'm teaching this for you the way I wish regular expressions were introduced to me: fundamentals-first with the syntax of modern applications in an actively hands-on, follow-along style.
If you enjoy learning, or being refreshed on, useful applications of fundamental ideas in computer science, data science, and software engineering, I encourage you to Subscribe to my channel so you can follow along as new lessons are added on a variety of subjects you'll find valuable!
You are Encouraged to Follow Along! Here are the instructions to do so:
2. In VSCode, Go to View, then Command Palette, type Git: Clone and press enter
4. Select the Folder/Directory you would like to save the project, press ok. Open the project.
5. In the Files Explorer Pane in VS Code, you should now see the three .txt files we're using in the videos:
A Mysterious, Little Course on Regular Expressions
This is the fourth video in "A Mysterious, Little Course on Regular Expressions", a short introductory course on applied regular expressions. The first video introduced the "AND THEN" (concatenation) operator and gave instructions for setting up your computer with Visual Studio Code and the course's project repository with the same files used in the video. The second video introduced the "OR" operator (alternation / union). The third and previous video was on repetition using the quantifier/closure operator.
About me: Hey, hey! I'm Kris Jordan (he/him/his), a professor who teaches computer science at the University of North Carolina at Chapel Hill. Back when I first tried to learn regular expressions it felt like a lot of weird, cryptic incantations to memorize. I couldn't separate the essential concepts to understand from the merely convenient shorthand add-ons. When I was was taught their theoretical basis, I struggled to connect academic notation and abstract examples with real-world syntax and concrete applications. So I'm teaching this for you the way I wish regular expressions were introduced to me: fundamentals-first with the syntax of modern applications in an actively hands-on, follow-along style.
If you enjoy learning, or being refreshed on, useful applications of fundamental ideas in computer science, data science, and software engineering, I encourage you to Subscribe to my channel so you can follow along as new lessons are added on a variety of subjects you'll find valuable!
Комментарии