正则表达式修饰符:\s

在文本 "W3School has been live since 2006" 中,有多少个空白字符?

5

匹配到的位置如下:

W3School#has#been#live#since#2006

(每个匹配项被替换为 # 字符)