How t extract last part of a text in python [duplicate]

No need for regex here:

result = input_str.split('@')[-1]

Leave a Comment