Search found 8 matches

by AlexFeren
Wed May 08, 2024 10:53 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

Please provide screenshots illustrating the issue. It's exactly as above: : text : set private-key "-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCGR2b7mr : base 64 text base 64 text : qcRimIuw== -----END OPENSSH PRIVATE KEY-----" : text...
by AlexFeren
Tue May 07, 2024 3:11 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

psguru wrote: Tue Mar 05, 2024 8:52 am I gave you a suggestion earlier: use a regex like this

Code: Select all

word1.*?word2
where word1/2 are unique starting/ending texts of the ignored block.
Hi! I already answered that - showing exact syntax of the block and no - it don't work. This warrants a dedicated feature in ExamDiff.
by AlexFeren
Mon Mar 04, 2024 10:41 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

psguru wrote: Mon Feb 26, 2024 10:31 am For now, you can create a new document type and define your own "comments" for it using a regular expression, like this for C comments:
Suggestions?
by AlexFeren
Wed Feb 28, 2024 7:14 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

Are there unique start/end words that delimit your "comments"?
This:

Code: Select all

        set private-key "-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCGR2b7mr
:
:
qcRimIuw==
-----END OPENSSH PRIVATE KEY-----"
by AlexFeren
Mon Feb 26, 2024 5:41 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

Hi... Can you propose the regular expression given the specification in previous post?
by AlexFeren
Sun Feb 25, 2024 7:55 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

> Then another option is to use the ignore regular expressions option, if you can come with one that is. These can be multi-line.
Surely, a ExamDiff can make this easier by implementing "Ignore multi-line text bounded by start and end text" feature?
by AlexFeren
Thu Feb 22, 2024 9:14 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Re: Ignore large block of text

Hello! No, the line numbers for these blocks of text aren't static - varying each time the configuration backup is generated. Moreover, their length isn't static - hence PEM format specifies the delimiters. Moreover, there are multiples of these spread out through the configuration file...
by AlexFeren
Thu Feb 22, 2024 12:36 pm
Forum: ExamDiff Pro
Topic: Ignore large block of text
Replies: 15
Views: 8626

Ignore large block of text

Hello! Fortigate configuration file has a large block of text containing PEM-formatted certificate and key, which get updated at every backup. For example: set private-key "-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCGR2b7mr : : qcRimIuw== ...