Literal characters


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

Literal characters

We're going to begin learning the syntax that we need to write regular expressions by starting with the simplest match of all, a literal character. In other words, the letter A matches the letter A. To do this, we're going to be working with strings. Strings are just several characters that have been strung together. So let's say that we have the string car, which is in the double quotes there, and we have the regular expression car. /car/ matches car. /car/ also matches the first three letters of carnival. It doesn't match the entire expression; it just matches those first three letters.

It's very similar to searching inside a word processor. It's the simplest match there is. It just says look for literal car inside the string and tell me if you get a match or not. Now although it seems really simple, there are a couple of points that I want us to cover. The first is that these searches are case sensitive by default. That may not be the way your word processor wor...

Literal characters
Video duration: 6m 39s 5h 36m Intermediate

Viewers:

Literal characters 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 ...