Skip to main content
Solved

Can Condition Statement use [a-z] to check if value has a letter in it?


Forum|alt.badge.img

I am using a Condition Statement in the AttributeManager to check if the attribute ends with a letter. Using [a-z] does not seem to work and I am assuming it is because the test sees it as text not a Regular Expression.

Is there a way to get this to work or do I need to have a Test Clause for each letter of the alphabet?

Regards

Best answer by david_r

Try this instead:

The $-sign at the end of the regex means "end-of-line"

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

4 replies

david_r
Celebrity
  • Best Answer
  • March 23, 2018

Try this instead:

The $-sign at the end of the regex means "end-of-line"


Forum|alt.badge.img
david_r wrote:

Try this instead:

The $-sign at the end of the regex means "end-of-line"

That sure did it, thank you kindly. Is there a way to have it not be case sensitive?

 

 


david_r
Celebrity
  • March 23, 2018
potterman81 wrote:
That sure did it, thank you kindly. Is there a way to have it not be case sensitive?

 

 

You can use the following expression to match both lower and upper case:

 

[a-zA-Z]$

 


Forum|alt.badge.img
david_r wrote:
You can use the following expression to match both lower and upper case:

 

[a-zA-Z]$

 

That is perfect, thank you so much.

 

 

Cheers

 

 


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