I have a dataset

enter image description here

What I am trying to do is pull out the street names from the original field. Any ideas?


1 Answer 1


use the Calculate Field tool; for FieldName select StreetName_1 first

Choose Expression Type Python

Enter this expression: !Intersecti![0,!Intersecti!.find("&") - 2]

This should select the substring from position 0 through to just before the space before the ampersand and apply it to the StreetName_1 field.

Next, do the same operation but for StreetName_2:

Enter this expression: !Intersecti![!Intersecti!.find("&") + 2]

This will select the substring beginning 2 characters after the ampersand through the end of the Intersecti string field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.