Repetition metacharacters


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

Repetition metacharacters

In this chapter, we will learn to use repetition metacharacters to gain more matching power in our regular expressions. We're going to start by looking at the three main metacharacters: the star--or asterisk--the plus, and the question mark. Each one of these metacharacters has an effect on the item that immediately precedes it. That item could be a literal character, it could be a shorthand character set, it could be a more complicated expression that we haven't even learned yet, but it takes that preceding item and determines how many times that item can be repeated. In the case of the asterisk, that item can be there 0 or more times; in the case of the plus, it would be there one or more times; and with the question mark, the item would just be there 0 time or one time.

Now, it may be weird to think about repetition in terms of something being there 0 times, but it does make sense. What we're talking about is really quantifying the fact that this item is repeatable or is no...

Repetition metacharacters
Video duration: 7m 17s 5h 36m Intermediate

Viewers:

Repetition 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 ...