V
V
volt1112021-08-26 14:39:49
Regular Expressions
volt111, 2021-08-26 14:39:49

How to remove from the end of a line using Notepad++?

There are many lines for example: text1; text2; text3
You need to do this: text1; text2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-08-26
@volt111

Find: (?-s)^(.*?;.*?);.*
Replace: $1
https://regex101.com/r/liLPn0/2
Find: ;[^;\n]+$
Replace:
https://regex101.com/r/liLPn0/3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question