Hi Everyone.
I want to check the format one by one character in string and return into output.
Example: String is “a123b”, it will check and return output : " word+number+number+number+word"
How to do that ?
Thanks so much!
Hi Everyone.
I want to check the format one by one character in string and return into output.
Example: String is “a123b”, it will check and return output : " word+number+number+number+word"
How to do that ?
Thanks so much!
Hi,
Can you try the following?
String.Join("+",yourString.Select(Function(c) if(System.Text.RegularExpressions.Regex.IsMatch(c.ToString,"\d"),"number",if(System.Text.RegularExpressions.Regex.IsMatch(c.ToString,"[A-Za-z]"),"word","other"))).toArray)
Regards,
Thanks you very much Bro!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.