Dictionary Issue- RegEx to translate dollar amount to specific letter code
A
Amy Barker
started a topic
over 3 years ago
So, I am trying to create a dictionary that can translate a dollar amount to a specific letter code. Anything $1-$499 gets a specific letter, anything above $500 gets another. With the help of some superstars on staff I have gotten this far:
$1
^(.*?)\..*$
TRUE
FALSE
\D
TRUE
FALSE
^0$
TRUE
FALSE
/$
TRUE
FALSE
LOW LETTER
^[1-4]\d{2}$
TRUE
FALSE
LOW LETTER
^\d{1,2}$
TRUE
FALSE
HIGH LETTER
^(?!(1-499)$).*
TRUE
FALSE
But in testing it is not working nicely. Thought I had it for a second, but no dice.
Amy Barker
So, I am trying to create a dictionary that can translate a dollar amount to a specific letter code. Anything $1-$499 gets a specific letter, anything above $500 gets another. With the help of some superstars on staff I have gotten this far:
But in testing it is not working nicely. Thought I had it for a second, but no dice.
What am I missing?