Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RegEx

phackely
5 - Atom

Hi All,

 

Background:

Using the following within RegEx tool's Regular Expression field:

 

000$|000.00$

 

 

 

 Input data using Text Input tool and using the Select tool to transform AMOUNT's data type from Double to String:

TYPEAMOUNT
PURCHASE525
SALE25000
PURCHASE950.00
PURCHASE3000.00
SALE40000

 

Inquiry:

What needs to change within the RegEx field, or otherwise, to output matches for the AMOUNT field containing values that end in "000.00" or "000"?

 

I solved for this using the EndsWith() function within the Filter tool although I wanted to find out if I'm using the RegEx tool correctly.

2 REPLIES 2
DanielG
12 - Quasar

@phackely --- would this do it?  (\d+000\.00$|\d+000$)

 

REGEX_Match([Field], "(\d+000\.00$|\d+000$)")

phackely
5 - Atom

@DanielG, yes that works thanks for the insight.

Labels
Top Solution Authors