I am looking for a way to copy a pattern (letter 'A' in the following
example) to another string.
string str1 = "1111AAAA111111 AA";
string str2 = "11110000000011 11";
After the copy str2 becomes "1111AAAA000011 AA".
Can this is done efficiently using Regex?
TIA
Rohit
example) to another string.
string str1 = "1111AAAA111111 AA";
string str2 = "11110000000011 11";
After the copy str2 becomes "1111AAAA000011 AA".
Can this is done efficiently using Regex?
TIA
Rohit
Comment