Skip to content
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

[BUG] Neither [[:upper:]] nor [[:lower:]] function without ‘Match case’ selected #15071

Open
1 task done
southisup opened this issue May 1, 2024 · 1 comment
Open
1 task done

Comments

@southisup
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Neither [[:upper:]] nor [[:lower:]] function without ‘Match case’ enabled.

Steps To Reproduce

  1. Find [[:upper:]] or Find [[:lower:]]
  2. ‘Match case’ not enabled
  3. ‘Search mode Regular expression’ enabled
  4. ‘Find next’ in any text containing uppercase and lowercase characters.

Current Behavior

Regardless of the character class, both uppercase and lowercase characters are found, unless ‘Match case’ is enabled.

Expected Behavior

That [[:upper:]] would find uppercase and [[:lower:]] would find lowercase regardless of ‘Match case’ setting.

Debug Information

Installed from winget and unfortunately admin privileges no longer available for any update in foreseeable future.

Notepad++ v8.6.2   (64-bit)
Build time : Jan 14 2024 - 02:16:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 22H2
OS Build : 19045.4291
Current ANSI codepage : 1252
Plugins : 
    DSpellCheck (1.5)
    HexEditor (0.9.12)
    mimeTools (3)
    NppConverter (4.5)
    NppExport (0.4)

Anything else?

No response

@alankilborn
Copy link
Contributor

IMO, current behavior makes sense.

If you craft any regular expression you like (including case-related items), then before running you uncheckmark Match case, you are telling the system you don't care about case.

Tip: When working with regex (and particularly if you are a regex "purist"), always leave Match case checkmarked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants