Answer :
The program that removes all non-alphabetic characters from a given input is as follows:
import re
def onlyalphabet(text):
text = re.sub("[^a-zA-Z]+", "",text)
return text
print(onlyalphabet("*#126vinc"))
Code explanation:
The code is written in python.
- The first line of code, we imported regex module.
- A function "onlyalphabet" is declared and accept the arguments "text".
- The argument then check for only alphabets.
- Then it returns the text
- Finally, we print the function with the argument
learn more on python here: https://brainly.com/question/14468239