How to check if all the charactersof a string are same?

Hi,

How about the following?

System.Text.RegularExpressions.Regex.IsMatch(yourString,"[^A]")

Regards,

2 Likes