-1
A
回答
3
\s++
matches any whitespace character (equal to [\r\n\t\f\v ])
++ Quantifier — Matches between one and unlimited times, as many times as possible, without giving back (possessive)
Positive Lookahead (?=[^[]*])
Assert that the Regex below matches
Match a single character not present in the list below [^[]*
* Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
[ matches the character [ literally (case sensitive)
] matches the character ] literally (case sensitive)
Non-capturing group (?:\[|\G(?!^))
1st Alternative \[
\[ matches the character [ literally (case sensitive)
2nd Alternative \G(?!^)
\G asserts position at the end of the previous match or the start of the string for the first match
Negative Lookahead (?!^)
Assert that the Regex below does not match
^ asserts position at start of the string
Match a single character not present in the list below [^]\s]*
* Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
] matches the character ] literally (case sensitive)
\s matches any whitespace character (equal to [\r\n\t\f\v ])
\K resets the starting point of the reported match. Any previously consumed characters are no longer included in the final match
\s+
matches any whitespace character (equal to [\r\n\t\f\v ])
+ Quantifier — Matches between one and unlimited times, as many times as possible, giving back as needed (greedy)
相关问题
- 1. 记事本+ +正则表达式删除大括号
- 2. 删除双引号 - Excel到记事本
- 3. 删除所有重复行记事本++
- 4. 删除所有括号并用下划线替换所有空格?
- 5. 通过记事本++删除括号和数字
- 6. Javascript删除大括号
- 7. 删除括号内的所有内容
- 8. 删除不包括空格
- 9. 正则表达式除去括号之间的所有空格
- 10. 删除所有空格和空行
- 11. 记事本空间删除问题
- 12. 如何从括号中删除括号和尾随空格之间的所有内容?
- 13. 记事本++:如何删除除url之外的所有内容?
- 14. 记事本++删除字符串+括号和另一个括号之间的文本
- 15. Resharper:删除括号前的空行
- 16. PyPDF2坚持删除所有空格
- 17. 删除所有尾部空格
- 18. MySQL查询,删除所有空格
- 19. 序言:删除所有空格名单
- 20. 如何从字符串中删除所有符号和空格?
- 21. Swift 3删除不在引号内的所有空格“”?
- 22. 删除所有出现的括号之间的文本,包括它们自己
- 23. 如何用下划线替换所有空格并删除所有括号而不使用replace()函数?
- 24. LINQ删除大括号,铸造值
- 25. 防止scrapy从url中删除方括号和大括号
- 26. 记事本++删除行
- 27. 查找括号并在记事本++
- 28. 记事本++如何删除字符串后的所有字符
- 29. 记事本++删除所有不在单词表中的单词
- 30. 正则表达式删除空格和括号?
所有空格或全部空格? –