Python regex for searching substring

后端 未结 0 915
死守一世寂寞
死守一世寂寞 2020-11-30 03:32

I am trying to extract substrings from a long string in python3

def get_data(text):
    initials = text.split()[1]
    names = re.search(initials+\'(.*)EMP\',         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题