I’m having trouble validating by using regex. An example of a word that I want to validate is similar repeated words separated by a ‘-’ sign without spaces, where the first word of the repeated word is a capital letter followed by a lowercase letter, while the second word is all lowercase.
Example:
Dunia Anak-anak Masa Kini. //true
Dunia Ibu-Ibu Masa Kini. //false
Would really appreciate it if there is a way of solving this.
By using the “Check Text Matches” column and it didn’t work with various regex.
Success is only for the word “Ibu-Ibu” with a capital letter at the beginning of both words to be judged true.
Make sure the second word is similar to the first word and use lowercase.
For the first word with a capital letter at the beginning followed by lowercase letters, it can be included or not included in the validation.
In Indonesian, we know the existence of repeated words. The repeated word will be connected with a ‘-’ sign. The terms for writing the rewards are as I demonstrated above. What is needed is a validation of the use of capital letters/lowercase letters in the correctness of writing.
Maybe in English: Home-home //true and HOmE-hOmE //false (The second word is not all lowercase)
oh… so someone is entering this… this will be hard to break down… the only word in that entry with “-” is the one you looking for? or there might be more “-” in that entry?
Ok…
extract words with “-”
split them by “-”
convert the second one to lowercase
check if the converted one is the same as not converted
this is how you will know if the second one is all lowercase
then convert the first one to lowercase and check if it is the same as the second converted one… this way, you will know if first and second are the exact words