It looks like this happens if the regex parser goes over any non-single byte character while traversing the file.
So with search direction as "down" and `|` being the cursor position:
```
𝒎𝒎𝒎𝒎𝒎𝒎 |
<p> test</p>
```
with the same search will correctly match `test`, while:
```
|𝒎𝒎
<p> test</p>
```
will match "> te" (probably because of the 2 extra bytes).
Also note:
search was in "regex" mode not case sensitive , wrap was on and "dot all" was off
It looks like this happens if the regex parser goes over any non-single byte character while traversing the file.
So with search direction as "down" and `|` being the cursor position:
```
𝒎𝒎𝒎𝒎𝒎𝒎 |
<p> test</p>
```
with the same search will correctly match `test`, while:
```
|𝒎𝒎
<p> test</p>
```
will match "> te" (probably because of the 2 extra bytes).
Also note:
search was in "regex" mode not case sensitive , wrap was on and "dot all" was off