Dear All, I have this data on addresses (x variable):
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str18 x str6(x1 x2) str9 x3
"大同街188巷" "大同" "188巷" "大同街"
"北新路182號" "北新" "182號" "北新路"
end
I use
Code:
split x, p("街" "路")
and obtain x1 and x2. However, the desired x1 (lack of parsing characters) should be x3. Any suggestions? Thanks.