Skip to main content
Question

How to identified non title case words in names?

  • January 30, 2020
  • 7 replies
  • 22 views

tomjerry.vl
Forum|alt.badge.img

how to identify non title case words in the source indicate yellow color names

NameIdentificationVenkat RockVenkat RockWinner bufferWinner bufferLOck FuzzyLOck Fuzzylime roadlime roadFanTasy strEetFanTasy strEetVennila roaDVennila roaDRam NagarRam NagargAnga tempLegAnga tempLeSuri NagaSuri Naga
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • January 30, 2020

This regular expression should do the trick:

^(?:[A-Z][^\\s]*\\s?)+$

You could also use the @FullTileCase() function in the Text Editor to convert all the strings to Title Case


david_r
Celebrity
  • January 30, 2020

Another solution is to convert the string to title case in a new attribute, then compare the result with the original value. If the values differ, then the input wasn't proper title case.


tomjerry.vl
Forum|alt.badge.img
  • Author
  • January 30, 2020

This regular expression should do the trick:

^(?:[A-Z][^\\s]*\\s?)+$

You could also use the @FullTileCase() function in the Text Editor to convert all the strings to Title Case

thanks for giving your answer I know that option but i asked the question only for identification purpose non title case words how it is possible please tell me


ebygomm
Influencer
Forum|alt.badge.img+45
  • Influencer
  • January 30, 2020

Use a tester to compare the original attribute to the attribute converted with Full Title Case (this doesn't change the original attributes in any way)


oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • January 30, 2020

thanks for giving your answer I know that option but i asked the question only for identification purpose non title case words how it is possible please tell me

Sorry, I thought you wanted to change it. In that case, @ebygomm answer should work for you.

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • January 30, 2020

The AttributeValidator transformer has a test for CASE = Full Title Case

That allows you to validate the data.


  • January 30, 2020

StringSearcher transformer, with regular expression:

^([A-Z][a-z]*\s)+[A-Z][a-z]*$