The preview highlights the letters Op but the Regex only replaces the quotes (as expected):
![](https://uploads-us-west-2.insided.com/safesoftware-en/attachment/6551fb9f-2169-4b62-887a-8845627eac27.png)
Result:
‘Op. test ’ will become _Op. test _
The preview highlights the letters Op but the Regex only replaces the quotes (as expected):
Result:
‘Op. test ’ will become _Op. test _
Well that is interesting. I am not seeing that extra highlighting with 2021.1 and 2022.1 when I test your string. I tried double and single quotes in the string and in the regex.
I am not the best with regex but do you need 2 single quotes?
I did some experimenting and what able to reproduce it but it was a bit weird and seems to be a result of copy and paste.
If I hand type the test string and regex I get a good result, If I copy and paste the text from your question about I get 0 matches. If I copy use the quote mark from the text string I gut the same result as you.
Typed
Copied quotes into regex
Somehow I’m guessing there is a difference in the encoding here. Maybe UTF-16 vs UTF-8
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.