我想选择介于=>
和 之间的所有文本=>
,仅当包含[
或]
=> 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
如果您还想捕获=>
,请使用:=>[^=>]*[][][^=>]*=>
截图(之前):
截图(之后):