G
G
Gennady2020-10-14 13:51:03
Regular Expressions
Gennady, 2020-10-14 13:51:03

How to remove part of the text with a regular expression?

There are lines like:

SITE.RU	REGRU-RU	31.10.2018	31.10.2020	01.12.2020	1
TEST.RU	REGRU-RU	27.07.2020	27.07.2021	27.08.2021	1
SOME.RU  REGRU-RU	03.10.2019	03.10.2021	03.11.2021	0


What unites them is that all domains here are .RU and there is a line break.
How to delete all text after .RU before line break in Sublime?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2020-10-14
@theblackpost

Maybe a replacement like this?
(\.RU)\s[^\r\n]*([\r\n])
$1$2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question