Was this helpful?
.
The dot ( . ) is a metacharacter that is used in regular expressions. It matches any single character except newline.
Example
/.bc/
will match any since character followed by bc. Like abc, bbc, cbc, 9bc, zbc, 7bc.
/.../
will match any three consecutive characters
/^.$/
will match any string containing exactly one character. For information on how they participated in this regular expression, see ^ and $.
Last modified date: 12/03/2024