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

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.

主站蜘蛛池模板: 广东省| 兖州市| 海伦市| 巴林左旗| 黔江区| 红桥区| 颍上县| 浙江省| 临朐县| 民县| 南雄市| 镇康县| 盈江县| 龙里县| 普定县| 济阳县| 杭州市| 镇沅| 清徐县| 玛纳斯县| 桃源县| 邵东县| 临漳县| 房产| 离岛区| 德阳市| 大洼县| 隆回县| 和硕县| 南充市| 北京市| 兴安县| 铁力市| 皮山县| 卫辉市| 叶城县| 翼城县| 凤山县| 泰州市| 应城市| 吉林省|