正则中像 \s \w \S 的英文名字是什么?
字符 | 释义 |
---|---|
w | word |
s | whitespace |
d | digit |
b | word boundary |
英文名字?是指英文描述吗?直接看文档不就好了?Character classes - JavaScript | MDN
\s
、\S
、\w
、\W
,这种看起来像是 word
,space
的缩写。CharacterClass in the ECMAScript specification
本文参与了SegmentFault 思否面试闯关挑战赛,欢迎正在阅读的你也加入。
本文参与了SegmentFault 思否面试闯关挑战赛,欢迎正在阅读的你也加入。