Formatting
Hashtags in a caption are easy to see and annoying to collect. This page finds a # followed by letters, marks, numbers, or underscores, including accents, and lists each one. “Odd socks in the dryer.” has no hash, so the list is empty. “#café_2” is one tag. A lone # with nothing after it is ignored.
The match stops at the first character that is not a letter, number, or underscore. “#OddSocks” and “#2026!” come back as #OddSocks and #2026, and the exclamation mark stays in the source. “#odd-socks” comes back as #odd only. The hyphen is not part of a tag here, and neither is the socks that follows it.
Case is kept, and it is significant. #Odd and #odd are two lines unless you turn Unique matches only to yes, and even then uniqueness is the exact string, not a case fold. This is a list of tags that were already written. It does not invent CamelCase tags from plain words. That is the hashtag formatter.
#OddSocks #odd-socks #2026!
#OddSocks #odd #2026 The hyphen cuts the second tag. The exclamation mark is not part of the third.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
The pattern allows letters, numbers, and underscores. A hyphen ends the match, so only #odd is listed.
Yes. Digits are allowed after the hash. #2026 is a tag. A hash with no following character is not.
Yes. #café is kept as #café. The match uses Unicode letters, not A to Z only.
Not with the default. Unique matches only compares the exact text, so those two both remain if you leave it off, and both remain if you turn it on, because the case differs.
No. Only text that already has a # is collected. The hashtag formatter builds #Odd #Socks from ordinary words.