The textbook is a little misleading, he says:
[...] Matches any character in brackets.
However, this means that the regular expression will match a single character against any of the characters inside the brackets. ... means "insert the characters you want to combine here . " So you need to replace ... with the characters you want to match.
For example, [AP]M will match "AM" and "PM".
If your regular expression is literally [...] , then it will match a literal point. Note that there are no duplicate characters in parentheses.
source share