How does Java deal with an address string without provinces and cities?

for example: how to remove the provincial harmony style by XXXXXXXXXXXXX in Xihu District, Hangzhou City, Zhejiang Province? Regular?

Oct.31,2021

if you need efficiency, consider this:

  

this is a good method. I suddenly want to try to see if there is regular expression processing, but I don't know if regularization has any effect on efficiency, because some places are quite special, such as the so-and-so autonomous region

.
Menu