NOTEPAD++ REGEX (REGULAR EXPRESSION)

new line: \r\n
tab: \t
space: \s
digit: \d
non-digit: \D

Examples:
Starting from tab, then any characters and the end of line
\t(.)*\r\n

Two spaces:
\s\s

Doesn’t contain string1
.*(?!.*string2.*)

Contains string1 but not string2 after:
^.*string1.*(?!.*string2.*)$

Contains string1 then any characters up to the line break:
( string1)+(.)* \r\n

Recent Posts

Recent Comments

Meta

Written by:

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *