-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Word boundary issue with a generic subpattern next to it #1404
Comments
we are closing this issue due to multiple newer notepad++ versions since it was filed. please update your notepad++ to the latest version Notepad++ 7.6.6 and migrate or reinstall your plugins. thank you for your help and best regards.
Click here to visit the Notepad++ Community Forum |
Tried in Notepad++ v.7.7 - the issue still exists. There is no word boundary between |
Issue still present in v7.8.4 64-bit on Windows. |
Related: #6194 |
@OctaneTwisted This has to do with how multiple searches happen as each search is independent and happens with the starting point being the ending point of the last search. |
Description:
The word boundary as a BOW (beginning of word) does not work properly in Notepad++.
Current Behavior:
Using
\b\w
as a regex pattern, I'd expect Notepad++ to matchh
andw
inhello world
string. However, all the letters are matched:The issue is repro with the following patterns:
I suspect the meaning of a BOW (beginning of word) is lost when there is only a word boundary followed by a generic subpattern (a character class, a shorthand character class, a POSIX character class.
If there is a literal symbol following the word boundary, all works as expected:
highlights
w
inhello world
.Expected behavior:
\b\w
should only matchh
andw
inhello world
.Note: The end of word (EOW) meaning works right:
\w\b
matcheso
andd
inhello world
as expected.Notepad version: v.6.8.8 Build time: Dec 2015 - 01:11:37
The text was updated successfully, but these errors were encountered: