Skip to main content

Regex

15th October, 2022

Updated: 15th October, 2022

String starts with x and doesn't end with y

I've been using this for finding syntax issues in my markdown files


^title: '.*[^']$

will return


title: 'Git

Find files with empty first lines

(?<!(.|\n))\n+

include:

./_notes

exclude

.obsidian

Find images in regex

^(!\[.*?\]\((.*?)\))

a2c7e72b-55d3-49f2-8bdc-ce127a56ae70

Created on: 15th October, 2022

Last updated: 15th October, 2022