I have an address field containing the following text: "64,ramkoti,hyderabad,500070"

I need to copy hyderabad to another field.

What would be the code used in the field calculator tool to achieve this?

1 Answer 1


Use python parser and split:

def splitit(somefield):
    return somefield.split(',')[2] #2 is index for third word

Call with:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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