Skip to main content
Solved

Looping through Feature class columns to replace values

  • May 21, 2020
  • 1 reply
  • 55 views

johnehlen
Forum|alt.badge.img

Hello All,

 

I am trying to loop through a feature class with 30+ fields, each field having terrible quality data filled with duplicate white space.

I am trying to find a way to loop through the feature class, checking each field and then replacing the duplicate white space with single white space. I can do this manually, one at a time, with 30+ StringSearchers->StringReplacers. However, I am wondering if anyone has found a way to build a custom function to loop through each field and replace values? I would prefer to call a custom transformer and loop through all fields than build 30+ groups of two transformers. Currently in the string replacer I only see the option to do one string at a time.

 

Best answer by johnehlen

Never mind, I would delete this question if I could.

 

String replacer with replace regex expression.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

johnehlen
Forum|alt.badge.img
  • Author
  • 3 replies
  • Best Answer
  • May 21, 2020

Never mind, I would delete this question if I could.

 

String replacer with replace regex expression.