GoConqr has a new look! Let us know what you think.

Module 19 of 33 · Media

Metacharacters

Kostas Diakogiannis

Metacharacters

Metacharacters

Metacharacters in regular expressions are called all these weird special characters to regex that mean something specifically to a pattern and cannot be taken as a letter literal. 

We place them always between the two backslashes where we define the body of our pattern. Some of the most common used include: 

\w Which matches any letter or number. It is called word character

\d which matches all digits(numbers)

\s matches a space character

\. matches all letters, digits and special characters (be careful with that!)

\D all non-digit characters

\W matches all non-word characters (everything that is not a letter nor digit)

 

And many many more, you can find the full list here!

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?