Text Processingflags: g
Hashtag
Match hashtags (# followed by word characters) in social media posts, including accented Latin characters.
Try it in RegexPro →Available in
Pattern
regexengine-agnostic
#([\w\u00C0-\u024F]+) (flags: g)Raw source: #([\w\u00C0-\u024F]+)
How it works
# matches the literal hash. The capturing group ([\w\u00C0-\u024F]+) matches one or more word characters (letters, digits, underscore) plus Latin Extended Unicode range for accented characters like #café or #naïve.
Examples
Input
Loving #JavaScript and #regex!Matches
#JavaScript#regex
Input
Post tagged #café and #naïveMatches
#café#naïve
Input
No hashtags hereNo match
—Common use cases
- •Social media post parsing and analytics
- •Hashtag extraction for content tagging pipelines
- •Trending topic aggregation
- •Moderation and content filtering systems