String split and char counting

1.how to split the numbers and letters inserted between underscore symbol in below string

Data_1234abcd_string

2.How to print the string contains the same letter more than once.
For eg:a,aa etc

System.Text.RegularExpressions.Regex.Replace(“Data_1234abcd_string”, “[^a-z A-Z]”, “”)

1 Like

@saibinduk,

str = “Data_1234abcd_string”

requiredString = str.split(“_”.ToCharArray)

1 Like