Hello,
There is a string like the following example:
|AAAAA |TRUE|
|AAC |FALSE|
|CCCCCCC |TRUE|
How to check if all the charactersof a string are same?THX~
Hello,
There is a string like the following example:
|AAAAA |TRUE|
|AAC |FALSE|
|CCCCCCC |TRUE|
How to check if all the charactersof a string are same?THX~
Please try as below using outmatches.
Hi,
Can you try the following condition?
yourString.Distinct().Count()=1
Regards,
It’s amazing!Thanks for your help!
It’s profound~I will try my best to learn!THX~
Can i ask one more question?
IF the unique value in the string=A
There is a string like the following example:
|AAAAA |TRUE|
|AAC |FALSE|
|CCCCCCC |FALSE|
How to check string in this condition?THX…
Hi,
How about the following?
System.Text.RegularExpressions.Regex.IsMatch(yourString,"[^A]")
Regards,
It’s worked!!!I’ve thought about it for a long time…THX
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.