Grouping metacharacters


show more Grouping metacharacters provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions show less
please wait ...

Grouping metacharacters

In this movie, we're going to take a look at the grouping metacharacters. And aside from working with literal characters, the grouping metacharacters are probably the easiest characters there are. It's just simple parentheses. That's all of this. We put parentheses around things that we want to group together. It's very a commonsense approach. Now, why would we want to do this? Well, there are a couple of reasons. One is that putting these metacharacters around either a couple of different characters or a couple of different character sets allow us to apply repetition to that group. Now before, remember when we were doing repetition, we were repeating just a single element--either a single character, a character class, character set, and we were repeating it.

Now, we can group several of those together and repeat the group as a whole. That's simple, but it's actually really powerful. The second reason why you might use them is that they can make your expressions easier ...

Grouping metacharacters
Video duration: 4m 14s 5h 36m Intermediate

Viewers:

Grouping metacharacters provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions

Subject:
Developer
Software:
Regular Expressions
Author:
please wait ...