Matching a Selection of Characters

Learn about the concept of matching a specific selection of characters and its implementation.

Overview

Let’s start with matching an arbitrary character. The period character, when used in a regular expression pattern, is a meta-character that stands for a set containing all characters. This will match any single character. Using a period in the string means you don’t care what the character is, just that there is a character there. Here is some example output from the matchy() function:

Get hands-on with 1400+ tech skills courses.