[Github-comments] [geany/geany] Regex. Empty line not fond in text with repeated subpattern (#2096)

Aleksey notifications at xxxxx
Sat Mar 2 08:45:01 UTC 2019


Good day.
Found the following.

Geany: Geany 1.34.1, Russian_Russia.1251
Geany: GTK 2.24.32, GLib 2.58.1

**1.**
Consider the following plain text:

```
123




456

```

After 123 follow five empty lines, field 456 follows one empty line.

**2.**
Open **Search/Find**
**Search for**: `(?s)^(.*)\n(.*\1)`
**Replace for**: `\2`
[v] Use regular expressions
[v] Use multi-line matching

**3**.
Repeat pressed button "In document" while replace not stoped and get next text:
```
123

456

```

**4.**
Create a new empty file and paste the text from step 3

**5.**
Repeat the procedure from steps 2 and 3. The line between 123 and 456 will be deleted.
Can you tell me what is wrong? 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190302/ed608c64/attachment.html>


More information about the Github-comments mailing list