Negative character sets


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

Negative character sets

We now know how to write character sets, which essentially say to match any one character that's inside the set. Now we're going to see how to write a negative character set, which is to match any one character which is not in the set. The way we're going to do that is by using a new metacharacter, which is the caret. It looks like a little up arrow. Take a moment and locate that on your keyboard. For most of you, it's probably over the 6 key. And the caret is going to have a couple of meanings in regular expressions. This is going to be meaning number one, right.

This is only inside the character set as the first character of the character set. So we'll come back and learn the other meanings of the caret later, but right now we're dealing with it only in the context of character sets. So what it means is "not any one of several characters." So we put it as the first character inside the character set and that then negates the character set; it's then t...

Negative character sets
Video duration: 4m 53s 5h 36m Intermediate

Viewers:

Negative character sets 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 ...