Skip to main content
Solved

Regular Expression for Uppercase Only

  • October 24, 2019
  • 6 replies
  • 248 views

deanhowell
Influencer
Forum|alt.badge.img+23

I am trying to set up a tester or string searcher transformer to test if the entire string is uppercase but can't get it to work.

 

THIS SHOULD PASS

but

This Should FAIL

Best answer by danullen

If it finds [a-z] it's a fail. As simple as that? :)

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

6 replies

Forum|alt.badge.img
  • Best Answer
  • October 24, 2019

If it finds [a-z] it's a fail. As simple as that? :)


takashi
Influencer
  • October 24, 2019

This setting could work as expected.


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • October 24, 2019

I'd be tempted to ignore regex and do the test like this, if it's a possibility you'll have apostrophes, hyphens or similar in your input

e.g. THIS SHOULDN'T FAIL

But this should work as well - only values without any lowercase letters pass


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • October 24, 2019
danullen wrote:

If it finds [a-z] it's a fail. As simple as that? :)

Thanks @danullen, that worked perfectly, keeping it simple :)


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • October 24, 2019
ebygomm wrote:

I'd be tempted to ignore regex and do the test like this, if it's a possibility you'll have apostrophes, hyphens or similar in your input

e.g. THIS SHOULDN'T FAIL

But this should work as well - only values without any lowercase letters pass

Thanks also @ebygomm, that is a much more elegant solution. I love that there are multiple ways to get the same solution.


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • October 24, 2019
takashi wrote:

This setting could work as expected.

Thanks @takashi, as always you are a terrific help. I am always impressed by the help provided by the members on this forum.


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