I am trying to delete characters after "@" in an email address using python. I found some tips online but it didn't provide the exact solution I am looking for.
The whole email address I'm working on is coming from a parameter value.
paramater = [0] #contains the email address i.e. testing@email.com
mainStr = parameter [0]
newstring = mainStr.replace('@' , ' ')
Obviously, the above code is not providing me with result I am expecting which is to delete all strings after @.