I want to use a regular expression to match some double-byte character in A paragraph, but there is no output result.
Three double-byte characters should be matched, then three characters are replaced with A, B, and C.
before:
_________________________________________________________
DocumentModel document = new DocumentModel();
Section section = new Section(document);
document.Sections.Add(section);
Paragraph paragraph = new Paragraph("文件");
section.Blocks.Add(paragraph);
Run run = new Run(document, "文字");
paragraph.Inlines.Add(run);
document.Save("文件名");
_________________________________________________________
result of the output I expect is below, Is it possible? Any suggestions are welcome. Thanks in advance!
_________________________________________________________
DocumentModel document = new DocumentModel();
Section section = new Section(document);
document.Sections.Add(section);
Paragraph paragraph = new Paragraph("A");
section.Blocks.Add(paragraph);
Run run = new Run(document, "B");
paragraph.Inlines.Add(run);
document.Save("C");
_________________________________________________________
Code: Select all
{#setclipboard {#settemp -name zw -content DocumentModel document = new DocumentModel();
Section section = new Section(document);
document.Sections.Add(section);
Paragraph paragraph = new Paragraph("文件");
section.Blocks.Add(paragraph);
Run run = new Run(document, "文字");
paragraph.Inlines.Add(run);
document.Save("文件名"); -embeddata JVslUEVYX0VNQkVEX1BBUkFNUyVdJXsjcmVnZXhnZXQgLXRleHQgJVsldmFsdWUlXSUgLWV4cHIgW1x1NGUwMC1cdTlmYTVdKyAtZmluZGFsbCAtZGVsaW0gLX0= -variablename Set variable} -variablename Put text into clipboard}{#insertclipboard -variablename Insert text from clipboard}