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 (
In this completely revised second edition of the perennial best seller How Linux Works, author Brian Ward makes the concepts behind Linux internals accessible to anyone curious about the inner workings of the operating system. Inside, you'll find the kind of knowledge that normally comes from years of experience doing things the hard way.$ Check price
This fourth edition of Algorithms is the leading textbook on algorithms today and is widely used in universities worldwide. This book surveys the most important computer algorithms currently in use and provides a full treatment of data structures and algorithms for sorting, searching, graph processing, and string processing.$ Check price