Skip to main content
1 of 2
Aaron
  • 52k
  • 30
  • 161
  • 327

Here is a simple approach using the built-in Python .isdigit(), .isalpha() and .zfill() methods. This approach uses the Python parser.


Pre-logic code block

def changeAddress(y):
  integer = ''.join(x for x in y if x.isdigit())
  string = ''.join(x for x in y if x.isalpha())
  final = integer.zfill(3)
  return final + string

changeAddress(!YourField!)
Aaron
  • 52k
  • 30
  • 161
  • 327