Eclipse, regular expression search and replace

前端 未结 5 1684
清酒与你
清酒与你 2020-11-30 17:39

In eclipse, is it possible to use the matched search string as part of the replace string when performing a regular expression search and replace?

Basically, I want

5条回答
  •  粉色の甜心
    2020-11-30 17:51

    For someone who needs an explanation and an example of how to use a regxp in Eclipse. Here is my example illustrating the problem.

    enter image description here

    I want to rename

    /download.mp4^lecture_id=271
    

    to

    /271.mp4
    

    And there can be multiple of these.

    Here is how it should be done.

    enter image description here

    Then hit find/replace button

提交回复
热议问题