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 Reply

Create your own website, free on WordPress.com.Create your own website.
Start free