social_parser v0.4.0 SocialParser
SocialParser is used to parse out common social message commponents such as hashtags, mentions and urls.
Summary
Functions
Returns a map containing all social components found for the given message
Functions
Returns a map containing all social components found for the given message
Prefixes used
#
for hashtags@
or+
for mentionshttp://
orhttps://
for links
Usage
iex> SocialParser.parse("hi @you checkout http://example.com/ that +someone hosted #example")
%{
tags: ["#example"],
mentions: ["@you", "+someone"],
links: ["http://example.com/"]
}