June 2, 2025

#257 - How to find a regular expression (regex) in Notepad++

Open the find box (Control + F) and select the Regular Expression mode in the Search Mode.

Type the expression in the find what box: \w+\.IsValveCfg\[[^\]]+\] := true

Explanation:

\w+ = one or more word characters (letters, digits, or underscores)

\. = a literal dot (.)

IsValveCfg = matches this exact word

\[ = literal [

[^\]]+ = one or more characters that are not ] (i.e., the index inside the brackets)

\] = literal ]

:= true = matches the assignment part with a space before and after :=

No comments:

Post a Comment