
我想選擇之間的所有文字=>
並且 =>
僅當包含[
或]
=> predici-video [date] =>
我在我和她之間愛你。
所以,只有這個=> predici-video [date] =>
答案1
答案2
- Ctrl+F
- 找什麼:
(?<==>)[^=>]*[][][^=>]*(?==>)
- 查看 環繞
- 查看 正規表示式
- Find All in Current Document
解釋:
(?<==>) # positive lookbehind, make sure we have => before
[^=>]* # 0 or more any character that is not = or >
[][] # character class, matches [ or ]
[^=>]* # 0 or more any character that is not = or >
(?==>) # positive lookahead, make sure we have => after
如果您還想捕獲=>
,請使用:=>[^=>]*[][][^=>]*=>
截圖(之前):
截圖(之後):