有人可以帮我解决以下正则表达式吗?
我想将包含该单词的行blue
移至列表顶部。
Paul has a red BMW i7
Tina has black Mercedes A-Class
Robert has a silver Volkswagen Golf
Michelle has a blue Audi S7 Sportback
Carl has a white Tesla Model Y
Bradley has a blue Ford Edge
我想要的是:
Michelle has a blue Audi S7 Sportback
Bradley has a blue Ford Edge
Paul has a red BMW i7
Tina has black Mercedes A-Class
Robert has a Silver Volkswagen Golf
Carl has a white Tesla Model Y
谢谢
\A([\s\S]+?)^(.+blue.+\R)
$2$1
. matches newline
您必须Replace all根据需要单击多次才能移动包含
blue
解释:
替代品:
截图(之前):
截图(之后):