Using character sets For example, the regular expression “[ A-Za-z] ” specifies to match any single uppercase or lowercase letter . In the character set, a hyphen indicates a range of characters, for example [A-Z] will match any one capital letter.
Using character sets For example, the regular expression “[ A-Za-z] ” specifies to match any single uppercase or lowercase letter . In the character set, a hyphen indicates a range of characters, for example [A-Z] will match any one capital letter.