help with notepad++ and regex please.

caribou59110

Eminent Member
Member
Joined
Threads
41
Posts
79
Hi ,

I would like to filter or select, with notepad ++ combos whose password includes at least 3 of these caracters: lowercase or uppercase letter, numeral and special character. If possible, these passwords should also have at least 8 characters.

thanks in advance.
 
  • C
    Created
  • Last reply
  • 2
    Replies
  • 1K
    Views
  • 2
    Participants
  • Participants list
As a first pass, assuming one sentence per line (every line is defined as a sentence and only one sentence per line). Also, assume we aren’t requiring upper-case as the first character in the line

  • Find What: (?-is)^.+[A-Z].*\R
  • Replace With: `` (empty)

Explanation:

  • (?-is) = make it case sensitive; don’t span multiple lines
  • ^ = start match at beginning of the line
  • .+ = allow 1 or more of any character (this means that it won’t care if the first letter is uppercase, because that will be taken up by the “allow 1”)
  • [A-Z] = require one capital letter somewhere not in the first character
  • .* = allow 0 or more any-character after the required capital letter
  • \R = include the newline (either CRLF or just LF) in the match
  • If all that matches, then replace with blank (since replacing the newline also, the whole line is deleted)
However, this will not work when there are multiline sentences, or if you have multiple sentences in a line
 
  • Thread Starter Thread Starter
  • #3
it don't work for me, but i'm not sure well understanding....
But thanks a lot for your help.
Have a nice day.