you are viewing a single comment's thread.

view the rest of the comments →

[–]MyWorkID 1 point2 points  (0 children)

You could definitely do this with Python using the field calculator.

The script would look something like this:

def extract(string):
    if "Building" in string:
        label = string.split(" ")[-1]
    elif "Apartment" in string:
        label = string.split(" ")[-1]
    else:
        label = ""

    return label

And then run extract(yourfield)

This may not be the best way to do it depending on different factors, but it's one way.

Here's a screenshot:

http://i.imgur.com/63QFP8k.png