adambard / adambard/learnxinyminutes-docs
The Vimscript use a wrong regex sample
未关闭
- 主要语言
- Markdown
- 星标
- 12.3k
- 派生
- 3.7k
- 平均合并
- 13 小时 10 分钟
- 30 天内合并 PR
- 6
描述
In the line 112-118.
The sample put the pattern and string in wrong place, so the match test always false, the unmatch test always true.
I think the follow is better:
```
echo "hello" =~ "He" | " Regular expression match, uses 'ignorecase'
echo "hello" =~# "He" | " Regular expression match, case sensitive
echo "hello" =~? "He" | " Regular expression match, case insensitive
echo "hello" !~ "He" | " Regular expression unmatch, use 'ignorecase'
echo "hello" !~# "He" | " Regular expression unmatch, case sensitive
echo "hello" !~? "He" | " Regular expression unmatch, case insensitive
```
贡献指南
评估
这个 Issue 还没有评估数据。