Regex Word Boundaries

Here I’m going to show you how to use regex word boundaries. Word boundaries allow you to match entire words, or even words that begin or end in certain characters. This can be quite useful in your regex searches so come find out how to use these simple zero-length assertions. A zero-length assertion is one that returns a match, but doesn’t actually consume any characters. Word boundaries simply define where words begin and end, and like I said above, it allows you to search on whether a string is inside a word, or even at the beginning or end of a word. And of course, you can also use negative word boundaries, but that’s not part of this video. Here we’re only doing positive word boundaries.

Here’s the link I mentioned in the vid for lookarounds. This is the next step in your understanding of regex.

Regex Lookarounds

Rate this video

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Leave a Reply