Simple Regex failing in Notepad++

A Regex in Notepad++ is not behaving as I expect, and I’m wondering if it’s a bug in Notepad++ or something else.

Here is my file:

    0123456789ABCDEF

Here is my Regex: (\)

Here are all search settings:

search settings

When I pressed Replace All, here is what I got:

    0123456789ABCDEF

Here is what I expected instead:

    
0123456789ABCDEF

I switched to the Find tab, and even there, it is only matching

When I load it into regex101.com and selected the “PCRE” flavor (I read that this is what Notepad++ used), it behaves as I expected, not as Notepad++ behaves.

Read more here: Source link

Simple Regex failing in Notepad++

A Regex in Notepad++ is not behaving as I expect, and I’m wondering if it’s a bug in Notepad++ or something else.

Here is my file:

    0123456789ABCDEF

Here is my Regex: (\)

Here are all search settings:

search settings

When I pressed Replace All, here is what I got:

    0123456789ABCDEF

Here is what I expected instead:

    
0123456789ABCDEF

I switched to the Find tab, and even there, it is only matching

When I load it into regex101.com and selected the “PCRE” flavor (I read that this is what Notepad++ used), it behaves as I expected, not as Notepad++ behaves.

Read more here: Source link