官术网_书友最值得收藏!

Examples of character range

The following is a regex that matches any uppercase or lowercase alphabet in the English language:

    [a-zA-Z] 

The a-z pattern is for the lowercase character range and A-Z is for the uppercase character range.

The following regex matches any alphanumeric characters:

    [a-zA-Z0-9] 

Alpha numeric characters consist of any English alphabets and digits.

The following regex matches any hexadecimal character:

    [a-fA-F0-9] 

We know that hexadecimal characters consist of digits, 0 to 9, and letters, A to F (ignore casing). The preceding regex pattern shows a character class that includes these two character ranges. We use a-f and A-F ranges to make it match uppercase or lowercase letters.

主站蜘蛛池模板: 余干县| 甘南县| 同仁县| 聊城市| 海城市| 疏附县| 黄石市| 抚远县| 河东区| 孝感市| 车险| 浠水县| 财经| 金沙县| 洪湖市| 城固县| 顺义区| 涞水县| 扎兰屯市| 长武县| 兴安盟| 梁平县| 都江堰市| 缙云县| 宜黄县| 郸城县| 五常市| 龙山县| 习水县| 吉首市| 舒城县| 获嘉县| 澄迈县| 封开县| 上高县| 巴彦县| 武威市| 札达县| 龙门县| 北票市| 盐亭县|