Viewing 5 posts - 1 through 5 (of 5 total) Author Posts March 10, 2022 at 3:25 am #28089 spirosParticipant Regular expressions checked. Find: $ Replace: [\google] The result is [google] To have the result as [\google] It needs to be Replace: [\\google] However, this is not a problem when it is run via a macro: document.selection.Replace("$","[/google]",eeReplaceAll | eeFindReplaceRegExp,0); March 10, 2022 at 3:58 pm #28090 Yutaka EmuraKeymaster The macro should be : document.selection.Replace("$","[\\\\google]",eeReplaceAll | eeFindReplaceRegExp,0); March 12, 2022 at 2:00 am #28093 spirosParticipant Yes, sorry about the macro, my error, I used forward slash instead. The point is whether it makes sense for the replacement of [\google] to become [google] in standard regex and requiring [\\google] in order to replace as expected. March 12, 2022 at 9:43 am #28094 Yutaka EmuraKeymaster I am not exactly sure what your question is. Please write an example, what you expect to match literally, and what EmEditor actually matches. March 15, 2022 at 3:56 am #28095 StefanParticipant spiros mentions that he have to escape the backslash \ in the regex replacement by doubling it to \\ Find: $ Replace: [\google] (o) Regular Expression must be Replace: [\\google] (o) Regular Expression . Author Posts Viewing 5 posts - 1 through 5 (of 5 total) The forum ‘EmEditor Core Bug Reports’ is closed to new topics and replies.