Word boundaries


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

Word boundaries

In this movie, we are going to learn about another kind of anchored expression, and that is using word boundaries. The metacharacters we are going to use are the lowercase b, and the uppercase B, with a backslash in front of them. Lowercase b is a word boundary; that is the start or the end of a word. The uppercase B is not a word boundary. And that's the same pattern we have seen before, like when we had word character. Lowercase w was a word character; the uppercase W was not a word character. Just like the other anchored expressions we have seen, they reference a position, not an actual character.

What decides whether or not something is the boundary is based on a couple of conditions. It is the first word character in the entire string, so that's the first boundary you are going to have, and at the end of the string, the very last word character is going to get boundary as well, and then after that, in between those two, every single time that it shifts between a word characte...

Word boundaries
Video duration: 7m 17s 5h 36m Intermediate

Viewers:

Word boundaries 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 ...