-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. 正則表達式刪除空格和括號?
所有空格或全部空格? –