Notepad++ add to every line
- Press Ctrl+H to bring up the Find/Replace Dialog.
- Choose the
Regular expression
option near the bottom of the dialog.
To add a word, such as test
, at the beginning of each line:
- Type
^
in theFind what
textbox- Type
test
in theReplace with
textbox- Place cursor in the first line of the file to ensure all lines are affected
- Click
Replace All
button
To add a word, such as test
, at the end of each line:
- Type
$
in theFind what
textbox- Type
test
in theReplace with
textbox- Place cursor in the first line of the file to ensure all lines are affected
- Click
Replace All
button
Remove all links from a Markdown file
/\[(.*?)\]\(.*?\)/g
substitute with $1
Remove all superscript numbers
/\p{No}/gu/
2024-03-27
Match text between square brackets
/\[[^\]]*\]/g