Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to match all double byte characters
#9
I can delete the comment line with the following code, but it will produce an empty line

Macro Macro20
Code:
Copy      Help
_s=
;DocumentModel document = new DocumentModel();
;
;Section section = new Section(document);
;document.Sections.Add(section);
;
;Paragraph paragraph = new Paragraph(document);
;section.Blocks.Add(paragraph);
;
;Run 文字一run = new Run(document, "文字二");
;paragraph.Inlines.Add(run);
;
;文字三document.Save("test.docx");文字四
;
;//文字
;ComponentInfo.SetLicense("FREE-LIMITED-KEY");

_s.replacerx("//.*" "")


out _s

Perfect solution to the problem Smile
_s.replacerx("//.*\n" "")


Messages In This Thread
RE: Unable to match all double byte characters - by macman - 01-04-2021, 12:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)