특수문자 쌍따옴표로 포함된 문장만 걸러내기 ()

import re

double_quotation_marks_sentences_list = re.findall(r"“.*?”", context)
double_quotation_marks_str = '\n'.join([sentence for sentence in double_quotation_marks_sentences])

Leave a Comment