在shell脚本中我们有\ t用于tab,\ s用于空格,\ w用于word.什么\W (capital W) and \D (capital D)用于?
根据手册:
\W Match a non-word character
\D Match a non-digit character
Run Code Online (Sandbox Code Playgroud)
\W匹配任何不匹配的字符\w.同样\D匹配任何不匹配的字符\d.
| 归档时间: |
|
| 查看次数: |
2232 次 |
| 最近记录: |