I am trying to add a Tab space in a string which looks like this:
String 1: 1.1_1ATitle of the Chapter
String 2: 1.1_1Title of the Chapter
There is no space between "_1A" and "T".
or between "_1" and "T".
The desired output is
1.1_1A Title of the Chapter.
1.1_1 Title of the Chapter.
Here is what I tried:
string output= Regex.Replace(input, "^([\\d.]+)", "$\t");
also
string output= Regex.Replace(input, "^([\\d[A-Z]]+)", "$1 \t");
also
string output= Regex.Replace(input, "^([\\d.]+)", "\\t");
Can I have a single Regex for both the inputs?
Many Thanks