Groupings are used when you want to match certain patterns, but only want to extract part of the information.
We can later reference these segments that we captured later on.
To specify a grouping, use parantheses (
You can also nest capture parentheses. The captured groups are in the order in which they are defined.
To reference the captured substrings, use a backslash (
Command Line Kung Fu is packed with dozens of tips and practical real-world examples. You won't find theoretical examples in this book. The examples demonstrate how to solve actual problems. The tactics are easy to find, too. Each chapter covers a specific topic and groups related tips and examples together.$ Check price
Learn all the different scenarios of . This book is jam packed with code snippets written in C++ and Java to give you the edge you need to ace your technical interviews. Problems come with detailed solutions as well as a hint in case you get stuck, and organized by difficulty level with several variants to help you apply your knowledge more widely.$ Check price