la plus simple python équivalent à R gsub

Est-t-il un/une ligne de python équivalent à R gsub fonction?

strings = c("Important text,      !Comment that could be removed", "Other String")
gsub("(,[ ]*!.*)$", "", strings) 
# [1] "Important text" "Other String"  

OriginalL'auteur Deena | 2016-08-04