How to use regular deletion of specified characters by python

for example, s = "what if it looks so good? @ Douyin assistant-sharp is serious about playing games."

I want to delete @ Douyin Little Assistant and -sharp play games. He is serious

.

among them, @ Douyin assistant is followed by a space while -sharp plays games. is not available

.

when I first contacted python, I found something wrong on the Internet. So I came up to consult you directly, thank you!

Apr.07,2022

if -sharp plays the game, he is serious about fixing the position at the end. Just replace the two characters with empty characters.

-sharp!/usr/bin/python
-sharp -*- coding: utf-8 -*-

import re

s = '@ -sharp'
s = re.sub(r'@(.*)?\s', '', s)
s = re.sub(r'-sharp(.*)?$', '', s)
print(s)

result

Menu