Hi there,
I'm not good at RegExp so apologies...
I have two xml files as follows:
file 1:
file 2;
I've created a new File Format and a new Grammar Rule as follows:
[xmi:id="\.23"] Category: Basic RegExp is ticked
and what I'm looking for is that the strings xmi:id="changingString" to be shown not in blue but black.
When Session Settings are marked as Importance=Ticked.
Differences are shown correctly in Red, but the xmi:ids are marked as Red and Blue (not ignored) and
name="XXX010101 is marked as different from name="XXX010301 with the three in red
When Session Settings are marked as UnImportant=Unticked.
Differences everything (xmi:id="changingString") is marked in Blue and
name="XXX010101 is not marked as different from name="XXX010301, they are both Black when the three should be Red
If I change the Grammar Rule as follows:
[xmi:id="\w23"] Category: Basic RegExp is ticked
the same thing happens.
So my question is:
How do I correctly, using the above texts as examples, isolate the only difference as being the 1 and 3 in XXX010101 and XXX010301, ignoring (black) everything in the xmi:id="changingString" ? I don't want any blue...just black and red.
Many thanks and best regards
Seán
I'm not good at RegExp so apologies...
I have two xml files as follows:
file 1:
<process:MainProcess xmi:id="_a3oIEP7bEeSTxYPbYBfHpQ" name="XXX010101"
<elements xmi:type="no:relevant" xmi:id="_a3oIEP7bEeSTxYPbYBfHpQ"
etc.
<elements xmi:type="no:relevant" xmi:id="_a3oIEP7bEeSTxYPbYBfHpQ"
etc.
file 2;
<process:MainProcess xmi:id="_zDewoBLTEeaBiNEICZdcCA" name="XXX010301"
<elements xmi:type="no:relevant" xmi:id="_zDewoBLTEeaBiNEICZdcCA"
etc.
<elements xmi:type="no:relevant" xmi:id="_zDewoBLTEeaBiNEICZdcCA"
etc.
I've created a new File Format and a new Grammar Rule as follows:
[xmi:id="\.23"] Category: Basic RegExp is ticked
and what I'm looking for is that the strings xmi:id="changingString" to be shown not in blue but black.
When Session Settings are marked as Importance=Ticked.
Differences are shown correctly in Red, but the xmi:ids are marked as Red and Blue (not ignored) and
name="XXX010101 is marked as different from name="XXX010301 with the three in red
When Session Settings are marked as UnImportant=Unticked.
Differences everything (xmi:id="changingString") is marked in Blue and
name="XXX010101 is not marked as different from name="XXX010301, they are both Black when the three should be Red
If I change the Grammar Rule as follows:
[xmi:id="\w23"] Category: Basic RegExp is ticked
the same thing happens.
So my question is:
How do I correctly, using the above texts as examples, isolate the only difference as being the 1 and 3 in XXX010101 and XXX010301, ignoring (black) everything in the xmi:id="changingString" ? I don't want any blue...just black and red.
Many thanks and best regards
Seán
Comment