Skip to main content
Solved

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

  • December 23, 2021
  • 2 replies
  • 110 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.

View original
Did this help you find an answer to your question?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • 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
  • December 24, 2021
redgeographics wrote:

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​ 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings