dbojan created an issue (geany/geany#4549)

bug:  'search and replace' with 'use regular expression' and 'use multi-line 
matching' does not work after newline, when using ^ and cyrillic characters


bash-5.3$ geany -V  
geany 2.1 (built on 2025-07-28 with GTK 3.24.49, GLib 2.84.0)  

lbash-5.3$ uname -a  
Linux void 6.12.69_1 #1 SMP PREEMPT_DYNAMIC Sat Feb  7 01:22:02 UTC 2026 x86_64 
GNU/Linux  

1. add text with latin script and cyrillic script:

```
first line
second line
third line

први ред
други ред
трећи ред
```

2. use 'search and replace' with 'use regular expression' and 'use multi-line 
matching' enabled:

search for ^  
replace with -

3. result:
only in latin script start of lines is replaced. for cyrillic it stops at the 
end of first line

after search and replace:
two bottom rows of cyrillic script don't have - at the start.


```
-first line
-second line
-third line
-
-први ред
други ред
трећи ред
```


note: using $ works fine:

search for $   
replace with -added to the end

```
first line-added to the end
second line-added to the end
third line-added to the end
-added to the end
први ред-added to the end
други ред-added to the end
трећи ред-added to the end
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4549
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/[email protected]>

Reply via email to