Greetings,
I have a dataset that contains addresses with building numbers, and unit numbers at the end of an address. I am attempting to use String Manipulation with Regex but it’s not bringing any of the text over that matches the regex, it’s bringing over the entire row that matches.
Here is my example:
(0000 is a random number)
Data Exercept:
0000 BUENUE A UNIT: 208
0000 SOUTHGATE BLVD BLDG: 1 UNIT: 107
0000 MARVEY LN UNIT: 222
0000 W ## 1/2 ST BLDG: 1- MANSARD
0000 GOOSEVELT AVE UNIT: REAR
0000 BULL CREEK BLVD Bunit 150
KNIME I’m using String Manipulation with the Expression:
regexReplace($FOLDERNAME$,"(.*(?:ST|AVE|DR|DRIVE|BLVD|BOULEVARD|RD|CIRCLE|AVENUE|COSTA|LANE|ROAD|LN|SPEEDWAY|STREET)\b)","")
It brings over:
Data Exercept:
0000 BUENUE A UNIT: 208
0000 SOUTHGATE BLVD BLDG: 1 UNIT: 107
0000 MARVEY LN UNIT: 222
0000 W 00 1/2 ST BLDG: 1- MANSARD
0000 GOOSEVELT AVE UNIT: REAR
0000 BULL CREEK BLVD Bunit 150
But, I want it to bring over:
0000 BUENUE A
0000 SOUTHGATE BLVD
0000 MARVEY LN
0000 W ## 1/2 ST
0000 GOOSEVELT AVE
0000 BULL CREEK BLVD
Am I using the correct Node? Any help would be appreciated. Thank you.