
正则表达式
文章平均质量分 81
张子虚
夫水之积也不厚,则其负大舟也无力。
展开
-
正则表达式基础知识整理
正则表达式符号解释 符号 描述 i 执行对大小写不敏感的匹配 g 执行全局匹配(查找所有匹配而非在找到第一个匹配后停止)。 m 执行多行匹配。 \ 将下一个字符标记为一个特殊字符(转义操作)、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,’n’ 匹配字符 “n”。’\n’ 匹配一个换行符。序列 ‘\’ 匹配 “\” 而 “(” 则匹配 “(“。原创 2016-04-19 20:34:06 · 378 阅读 · 0 评论 -
Codewars-Javascript训练手册:正则表达式(上)
Autocomplete! Yay!(字符串自动补全)The autocomplete function will take in an input string and a dictionary array and return the values from the dictionary that start with the input string. If there are more th原创 2016-04-27 01:57:42 · 626 阅读 · 0 评论