import string
import re


def preProcessText(col):
    """
    Takes in a pandas.Series and preprocesses the text 
    """
    reponct = string.punctuation.replace("?","").replace("/","")
    rehtml = re.compile('<.*>')
    extr = col.str.strip()
    extr = extr.str.replace(rehtml, '', regex=True)
    extr = extr.str.translate(str.maketrans('','',reponct))
    extr = extr.str.replace('[^0-9a-zA-Z?/ ]+', ' ', regex=True)
    extr = extr.str.replace('\s+', ' ', regex=True)
    extr = extr.str.lower()
    return extr