NOTEPAD++ REGEX (REGULAR EXPRESSION)

new line: rn
tab: t
space: s
digit: d
non-digit: D

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

Two spaces:
ss

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

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

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

Leave a comment

Design a site like this with WordPress.com
Get started