to be
a problem slover

how to extract regex group value from vscode

Requirement

From the source text:

aeblfdkhhhdcdjpifhhbdiojplfjncoa : 1Password – Password Manager : version 2_3_4
ahfgeienlihckogmohjhadlkjgocpleb : Web Store : version 0_2
amaaokahonnfjjemodnpmeenfpnnbkco : Grepper : version 0_0_7_5
bkhaagjahfmjljalopjnoealnfndnagc : Octotree - GitHub code tree : version 7_5_0

I want to keep the name and delete other chars, so the final result will be like:

1Password – Password Manager
Web Store
Grepper
Octotree - GitHub code tree

Solution

In vscode search by regex.

Find .*: (.*) :.* and replace to $1 will just keep group 1.

赞(6) 打赏
欢迎转载,注明出处:刘世明的博客 » how to extract regex group value from vscode

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下作者

支付宝扫一扫打赏

微信扫一扫打赏