rb/lib/twitter-text/extractor.rb
# Extracts the username username replied to in the Tweet <tt>text</tt>. If the
# <tt>text</tt> is <tt>nil</tt> or is not a reply nil will be returned.
#
# If a block is given then it will be called with the username replied to (if any)
Extracts the username username replied to in the Tweet text. If the
text is nil or is not a reply nil will be returned.

If a block is given then it will be called with the username replied to (if any)
Extracts the username username replied to in the Tweet text . If the text is nil or is not a reply nil will be returned . If a block is given then it will be called with the username replied to ( if any )
def extract_reply_screen_name(text) 
        return nil unless text
        possible_screen_name = text.match(Twitter::TwitterText::Regex[:valid_reply])
        return unless possible_screen_name.respond_to?(:captures)
        return if $' =~ Twitter::TwitterText::Regex[:end_mention_match]
        screen_name = possible_screen_name.captures.first
        yield screen_name if block_given?
        screen_name
      end
def extract_reply_screen_name ( text ) return nil unless text possible_screen_name = text . match ( Twitter :: TwitterText :: Regex [ :valid_reply ] ) return unless possible_screen_name . respond_to? ( :captures ) return if $' =~ Twitter :: TwitterText :: Regex [ :end_mention_match ] screen_name = possible_screen_name . captures . first yield screen_name if block_given? screen_name end
Extracts the username username replied to in the Tweet <tt>text</tt>.
Extracts the username username replied to in the Tweet <tt > text< / tt > .
# :yields: username
text
<not_specific>