!<field name>!.split("^")[0]
!<field name>!.split("^")[1]
!<field name>!.replace("&", "")
!<field name>!.rstrip()
!<field name>!.lstrip()
Are you looking to remove the "&" and spaces? If so, I would recommend running the replace method on your initial field. Ex:!<field name>!.replace("&", "")You can then run the rstrip and lstrip methods to remove beginning and ending spaces in fields Line1, Line2, etc. after you run the split method. Ex:!<field name>!.rstrip()!<field name>!.lstrip()
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.