
上QQ阅读APP看书,第一时间看更新
Brackets expressions
If we want to match a specific character in a line, we enclose it in square brackets, such regular expressions are generally called a bracket expression. It matches any one of the characters that is within the square brackets. The order of the characters does not matter. For example, '[APz]' will match any one of the 'A', 'P', or 'z' characters in a string.