Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 380 Bytes

regex.md

File metadata and controls

28 lines (19 loc) · 380 Bytes

Regex capturing tips

  1. Notepad++ has a powerful regex parser, better then VSCode.
  2. VSCode and Notepad++ work in a different way for parenthesis in the substitution.

Variable name

([a-zA-Z]\w*)

Indentation

(^[^\S\r\n]*)

Variable or raw string

([a-zA-Z]\w*|"\w*")

Anything except line break

([^\n]*)