Regular Expressions 101

Community Patterns

Match words separated by comma in a line starting with a specific keyword

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:\btags::|(?!^)\G,)\h*\K[^,\s]*
/
gm

Description

From https://stackoverflow.com/questions/54387368/match-words-separated-by-comma-in-a-line-starting-with-a-specific-keyword

Modified to help me edit Logseq markdown files. Searching for page properties.

Submitted by anonymous - 2 years ago