Taking numbers out of a string

I have a location area from an address, but it has the zip code baked in. I need to take the numbers out of the data. Example; ‘Christchurch 8023’ → make it ‘Christchurch’

Screenshot 2023-07-01 at 1.13.12 PM

image

You can do something like this.

2 Likes

That’s great thank you. It works really well except for entires with multiple words. Is there an update to the regular expression that will take care of this? cheers

Here’s an alternative way using a Math columns and Replace All column:

1 Like

image

Here you go.

1 Like

I added a space after A-Z like this and it worked out ([a-zA-Z ]+)

1 Like

Theoretically your solution will work with space characters, but if you have tabs or line breaks then I believe \s covers them.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.