Free Support Forum - aspose.com

I would like to add space between the string by the regular expression the regular expression

I have this text(12test), I would like to add space between the string by the regular expression(Target sample:12 test)

string p="12test";

Regex rg = new Regex((@"(?i)(?<=^\d+)\s*(?=[\u4E00-\u9FFFa-z])"),
RegexOptions.Multiline | RegexOptions.Singleline);
p.Range.Replace(rg, " ");No successNo success

My Purpose is to add space between characters, you can use other methods to achieve.

I have resolvedv´╝îTo obtain the source string, as a replacement when editing charactersTo obtain the source string, as a replacement when editing characters

Hi,

Thanks for your inquiry. It is nice to hear from you that you have solved your query. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.