Question: PYTHON How can I remove '@user', '@user:', 'url', and 'RT' using regex in python. For example: RT @RobOakeshott1: The National Party declares war on the

PYTHON

How can I remove '@user', '@user:', 'url', and 'RT' using regex in python.

For example:

RT @RobOakeshott1: The National Party declares war on the Gloucester community because they stood up for themselves and won. Remember https://t.co/RKyppIS5c9

In the above, I want to remove 'RT' and '@RobOakeshott1:'

It should read:

The National Party declares war on the Gloucester community because they stood up for themselves and won. Remember

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!