import re


def strip_regex(tweet, regex):
    """Strip a tweet of any text matching the supplied regex. Returns the
    text(s) removed, count of text(s) removed, and remaining tweet minus the
    removed text(s)."""
    # Extract all matches from the tweet:
    matches = re.findall(regex, tweet)

    # Count all matches:
    match_count = len(matches)

    # Remove matches from tweet:
    stripped_tweet = tweet
    for text in matches:
        stripped_tweet = stripped_tweet.replace(text, "")

    # Remove any double spaces left behind from text stripping:
    stripped_tweet = re.sub(" +", " ", stripped_tweet).strip()

    return matches, match_count, stripped_tweet