Basic Metacharacters
Lesson 2 of 8 - Regex Fundamentals
Lesson Progress0/4
20 minutes
Beginner
1The Dot (.) Metacharacter
Theory
The dot (.) matches any single character except newline. It's one of the most versatile metacharacters in regex.
Example
/c.t/ matches "cat", "cut", "cot", but not "cart"Practical Understanding
Use the dot when you need to match any character in a specific position. Think of it as a wildcard.