How to cast the string with ' - ' with 2 characters by 2 characters???
For example: ABCCDEFF
Result: AB-CC-DE-FF
Kindly answer me if you have idea. Thanks a lot for viewing :-)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vipan SharmaPosted Apr 11, 2016, 2:47 AM
st = Regex.Replace(st, ".{2}", "$0-");
st = st.Remove(st.Length - 1);
Vipan SharmaPosted Apr 11, 2016, 3:01 AM
Asp.Net HeinPosted Apr 11, 2016, 2:57 AM
Vipan SharmaPosted Apr 11, 2016, 2:53 AM
Asp.Net HeinPosted Apr 11, 2016, 2:51 AM
DhanasekarPosted Apr 11, 2016, 2:46 AM