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