* <> Regex to match Org tags /:\w+(?=:)/g For use with grep, the -P flag is needed to get the lookahead [ (?=...) ] to work. The command line looks like this: $ grep -P ':w+(?=:)' filename -- Excerpted from: PUBLIC NOTES (H) http://alph.laemeur.com/txt/PUBNOTES-H ©2017 Adam C. Moore (LÆMEUR)