I wish to take the middle pattern of the sentence in chinese character using regex

Published: 12/06/2019
I wish to take the middle pattern of the sentence in chinese character using regex
Source: STACKOVERFLOW.COM

I tried to take the middle words based on my pattern. Below are my codes: text = "東京都田中区9-7−4" import re #Sorry due to the edit problem and stackoverflow doesnt allow me to include long sentences here, please check my comment below for the compile function of re. city = re.findall(r,text) print("getCity: {}".format(city)) My current output: getCity: ['都田中区'] My expected output: getCity: ['田

Read more
Related news
Comment
FACEBOOK