wwaters

removing numeric characters from alphanumeric string in field calculator ArcMap 10

Discussion created by wwaters on Jan 10, 2012
Latest reply on Jan 25, 2012 by eelizbic
I have a field containing alphanumeric values in the following format:

A-AA00

Sometimes they are also

A-AAA0

I need a python script I can put in the field calculator in ArcMap 10 that will at least remove the numeric characters, and retrain the alphabetical ones and the hyphen. So that, for example, this:

A-AA0

becomes this:

A-AA

I also want to replace the numeric chars with numeric chars from another field. This Stack Exchange entry addresses this issue, but the string has a space before the number and this can be used for splitting and indexing... my strings are not so handily constructed.

Outcomes