Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Regex expression error in Formula tool

$
0
0

Hi,

 

Having a problem here - would be so much appreciated if anyone can provide the solution.

 

to identify any digit character(s) in a field and to replace with a string letter(such as F) to a string letter and any digit character(s):

Untitled picture.pngto   Untitled picture2.png 

I used Formula tool with an expression: REGEX_Replace([Column], "\d{0,}", "F\d{0,}")

 

tested the regex terms in Regexer.com, and it works well there. However, when applying the same expression on Alteryx, it gives me weird answers:

Untitled picture1.png

 

Or an any other function/tool would achieve the same result rather than using RegEx?

 

Any help would be appreciated!

 

Thanks in advance!

 

Zoey


Viewing all articles
Browse latest Browse all 4999