-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Description
Description of the Issue
When doing a Find & Replace using a regular expression with a lookahead or lookbehind, the "replace" button may fail to work.
Steps to Reproduce the Issue
- Open a blank Notepad++ tab
- Insert the following text
,NULL,NULL - Open the Find & Replace dialog
- Put this in the find box:
(?<=,)NULL - Set "Search Mode" to "Regular expression"
- Press "Replace" multiple times
Expected Behavior
The "Replace" button should result in the current match being replaced with the specified replacement text.
Actual Behavior
The "Replace" button didn't perform any replacement, but instead moved to the next match.
Debug Information
Notepad++ v7 (32-bit)
Build time : Sep 21 2016 - 22:00:56
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS : Windows 10
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll
Note that this doesn't occur when you press "Replace All"; it's specific to the "Replace" button.
Reactions are currently unavailable