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

Examples of character classes

Which regex will match the letters p, m, or z?

Solution 1:

    [pmz]

Solution 2:

    [zmp]

Solution 3:

    [mzp]

All the preceding three regular expressions will behave in exactly the same manner because the order of the characters inside the character class does not matter.

Which regex will match English language vowels a, e, i, o, and u?

    [aeiou]

Which regex will match the field extensions .mp3 or .mp3?

    \.mp[34]

Which regex will match the letters @, #, or =?

[@#=]
主站蜘蛛池模板: 呼玛县| 青川县| 红安县| 年辖:市辖区| 泸州市| 阿拉善盟| 梓潼县| 乐山市| 米林县| 当雄县| 科尔| 西乌| 长宁县| 京山县| 平和县| 抚州市| 洛宁县| 元朗区| 平利县| 邛崃市| 安福县| 浮梁县| 新绛县| 斗六市| 郎溪县| 安西县| 新龙县| 舒兰市| 江门市| 东港市| 吉隆县| 桐庐县| 河西区| 潜山县| 岳池县| 嘉峪关市| 阿鲁科尔沁旗| 简阳市| 江城| 乌兰察布市| 封开县|