Extractor.ExtractReplyTo Method

Namespace:
Weavy.Core.TwitterText
Assembly:
Weavy.Core.dll

ExtractReplyTo(string)

Extract a @username reference from the beginning of Tweet text. A reply is an occurance of @username at the beginning of a Tweet, preceded by 0 or more spaces.

public string ExtractReplyTo(string text)

Parameters

text
string

text of the tweet from which to extract the replied to username

Returns

string

username referenced, if any (without the leading @ sign). Returns null if this is not a reply.