Page 1 of 1

Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 9:32 pm
by Debugger
Regex Text Editor

OK:
Find the missing dot at the end of the line in the text.

Missing:
Find the missing dot at the end of the line in the text

Re: Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 10:49 pm
by vanisk
Make a regex to find
Not Dot and newline character

Re: Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 11:05 pm
by Debugger
Something is wrong here:
[^.]\r\n

Re: Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 11:07 pm
by vanisk
Debugger wrote:
Sat Apr 20, 2019 11:05 pm
Something is wrong here:
[^.]\r\n
you are almost correct, but escape the . [Dot has special meaning in regex, so have to escape it]
[^\.]\r\n

Re: Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 11:17 pm
by Debugger
do not look for a dot at the end of the line:
I want to ignore any URLs
I want to ignore any Cyrillic alphabet

Something is wrong here:
[^\.]\r\n(!?(http|https):\/\/[\w\-_]+(\.[\w]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)[А-Яа-я])

Re: Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 11:32 pm
by vanisk
Debugger wrote:
Sat Apr 20, 2019 11:17 pm
do not look for a dot at the end of the line:
I want to ignore any URLs
I want to ignore any Cyrillic alphabet

Something is wrong here:
[^\.]\r\n(!?(http|https):\/\/[\w\-_]+(\.[\w]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)[А-Яа-я])
sample text?

Re: Find the missing dot at the end of the line in the text

Posted: Sat Apr 20, 2019 11:38 pm
by Debugger
https://website.ru/2007/08/22-254
Природа
Лира Неская
Natura... Zawsze była zachętą (bodźcem) do kreatywności i radości
Сколько себя помню, всегда была преданной приверженкой эпикурейства и

Re: Find the missing dot at the end of the line in the text

Posted: Sun Apr 21, 2019 11:15 am
by vanisk
May need some tweaking

Code: Select all

\r\n(?!http|www|А-Яа-я?).+[^\.]

Re: Find the missing dot at the end of the line in the text

Posted: Sun Apr 21, 2019 11:36 am
by Debugger
vanisk wrote:
Sun Apr 21, 2019 11:15 am
May need some tweaking

Code: Select all

\r\n(?!http|www|А-Яа-я?).+[^\.]
I'm sorry, but it's a wrong pattern.
Finds all the text and URL in Emeditor! What totally contradicts what I want to find.

Image