Skip to main content
Solved

How to find alphanumeric strings and replace them with a null value

  • December 23, 2021
  • 2 replies
  • 136 views

messagemauri
Contributor
Forum|alt.badge.img+6

I have a column in a table with names and I want to find the ones with alphanumeric string and replace it with a null value. Apparently this is erroneous data in the table.

 

Sample Data in the column NAME:

GREEN-BROWN TREES --> Leave as is

FORT/STRONG -> Leave as is

PEACE RIVER --> Leave as is

3T7H8HF54FD --> This is the data I want to find and replace with Null

 

Greatly appreciated.

 

Thank you.

 

 

Best answer by redgeographics

You can do that in an AttributeManager using a Conditional Value on that attribute.

Screenshot 2021-12-24 at 09.26.58So if the attribute contains the regex \\d (any digit) it'll map to a null value, otherwise there's no action and the original value is retained.

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.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • December 24, 2021

You can do that in an AttributeManager using a Conditional Value on that attribute.

Screenshot 2021-12-24 at 09.26.58So if the attribute contains the regex \\d (any digit) it'll map to a null value, otherwise there's no action and the original value is retained.


messagemauri
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 37 replies
  • December 24, 2021

You can do that in an AttributeManager using a Conditional Value on that attribute.

Screenshot 2021-12-24 at 09.26.58So if the attribute contains the regex \\d (any digit) it'll map to a null value, otherwise there's no action and the original value is retained.

Thank you @Hans van der Maarel​