-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. 刪除大括號內的空格javascript
- 3. 記事本++大括號
- 4. 記事本+ +正則表達式刪除大括號
- 5. 刪除空格後的所有逗號
- 6. 如何刪除記事本中的圓括號外的所有內容++
- 7. 刪除雙引號 - Excel到記事本
- 8. 刪除所有重複行記事本++
- 9. 刪除所有括號並用下劃線替換所有空格?
- 10. 在記事本中,從行中刪除所有數字+符號+
- 11. 正則表達式爲刪除空格,我想刪除的東西之間的所有空格括號
- 12. 通過記事本++刪除括號和數字
- 13. Javascript刪除大括號
- 14. 刪除括號內的所有內容
- 15. 使用記事本++刪除文本文件中特定符號/字符前的所有空格
- 16. 刪除不包括空格
- 17. java刪除空格也刪除空格後的所有內容
- 18. 如何刪除字典詞典中的所有大括號
- 19. 在記事本中刪除行號++
- 20. 記事本++如何刪除行號?
- 21. 替換大括號內的所有空格
- 22. 正則表達式除去括號之間的所有空格
- 23. 刪除所有空格和空行
- 24. 記事本空間刪除問題
- 25. 如何從括號中刪除括號和尾隨空格之間的所有內容?
- 26. 刪除所有標記<a>用記事本+
- 27. 記事本++:如何刪除除url之外的所有內容?
- 28. 記事本++ - 刪除所有包含特定文本的行
- 29. 記事本++刪除字符串+括號和另一個括號之間的文本
- 30. Resharper:刪除括號前的空行
所有空格或全部空格? –