Extract Hashtags

Pull every hashtag out of a text and get the list back one per line, ignoring markdown headings that start with a hash. A hash plus space is a heading.

Extracting hashtags collects the topic tags from a text or a set of captions. A hash followed by a space is a Markdown heading rather than a hashtag, so those are deliberately left out.

Output

                

Paste or type something above.

Questions about extract hashtags

Why is my Markdown heading not listed?
A heading is a hash followed by a space, while a hashtag has no space, so the two are told apart.
Do tags with underscores count?
Yes, underscores and non-Latin letters are part of a hashtag, which is how those platforms define one.
Should the hash be kept in the output?
Yes, the hash is kept, so the list can be pasted straight back into a post.