I have origin-destination lines and I'm looking for intra-city lines or lines whose origin and destination are in the same city.
A sample intra-city feature would be "Quezon_City to Quezon_City"
and inter-city would be "Quezon_City to CALOOCAN_CITY"
.
I'd like some help in writing an expression that selects all features whose string before "to"
is the same with the string after it using Python or Expression Builder.