I want to remove part of a string (shown in bold) below, this is stored in the string oldString
[DMSM-8433] 加護亜依 Kago Ai – 加護亜依 vs. FRIDAY
im using the following regex within python
p=re.compile(ur"( [W]+) (?=[A-Za-z ]+–)", re.UNICODE)
newString=p.sub("", oldString)
when i output the newString nothing has been removed
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…