Named Groups

Length: 00:06:11

Lesson Summary:

In the last lesson, we learned how to use capturing groups and backreferences to match the previously-matched text. However, we do not have to rely on the numerical reference style previously shown. Instead, we can use one of the many ways to define a named group (depending on our regex implementation). This allows us to give our groups human-readable names and is especially useful when we have multiple captured matches (both because we can better understand what the group references and because numerical references only go up to nine).

Get the lesson files here!:


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More