I have looked everywhere, but I can's seem to find a simple way of getting a sub string in python.
I am using tweepy, and I have stored a tweepy tweet into an array of textblobs, and set that textblob into a string variable.
Example: "RT @Acosta: Trump defends his “very fine people” comments on Charlottesville: “People were there protesting the taking down of the monument…"
This is a tweet, I want the "@Acosta"(or Acosta) part, How would I sub-string that part?
I tried using the re library, and while it worked like it should on any other string it did not work on the tweet
match = re.search("\@(.*?)\:" , randTweet).group(1)