Version: OmegaT-6.0.1_0_42ef0143
Platform: Linux 6.18.44-1-MANJARO
Java: 17.0.14 amd64
Memory: 824MiB total / 575MiB free / 1024MiB max
When using the "Replace" function with regex capture groups, the result is incorrect if the "Space matches nbsp" option is checked. The capture groups appear to be shifted or corrupted during the replacement process.
a b c(a) (b) (c)$1-$2-$3The string a b c is replaced with a-b-c.
The string a b c is replaced with a- -b.
Unchecking the "Space matches nbsp" option allows the regex to function as expected.
This issue appears related to, or a regression of, fixed ticket: https://sourceforge.net/p/omegat/bugs/951/