NotePad++ replace problem

后端 未结 3 1119
野趣味
野趣味 2021-02-19 06:33

I have a file with lots of text editing using NotePad++.

for example

some textanother

3条回答
  •  情话喂你
    2021-02-19 07:26

    Use a regex like: ([\w\s\d]+)

    and replacement like: $1

    The important point here is to create a matching group for your text by surrounding it in brackets i.e. ([\w\s\d]+) which matches one or more:

    • \w word chars
    • \s space chars
    • \d numeric chars

    Now in your replacement string, reference the first and only matched group with $1.

提交回复
热议问题