I'm struggling to work out how to do this. I'm comparing two large XML files and I want to omit all lines which include the word IMAGEFILENAME from the comparison. I've edited the XML Rules default ruleset and added in a new pattern in the Lines to Omit section. Unfortunately I'm not familiar enough with regular expressions to know how to do this. Just entering the word in the Pattern box doesn't work.
Help appreciated.
Thanks
Omit lines containing specified word using a Ruleset
Moderator: SourceGear
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Omit lines containing specified word using a Ruleset
You should be able to just enter that word and that's it.
I was able to on a test case just now.
You could also enter "^.*IMAGEFILENAME.*$" (without the quotes).
That should do the same thing.
With either pattern all of the matching lines should be grayed out.
If you go to the Reference View (as opposed to the Edit View), you
can also Hide them completely.
If you can't get it to work, you might post a screen shot with a
piece of the files and a shot of the dialog and maybe I can see
something out of place.
jeff
I was able to on a test case just now.
You could also enter "^.*IMAGEFILENAME.*$" (without the quotes).
That should do the same thing.
With either pattern all of the matching lines should be grayed out.
If you go to the Reference View (as opposed to the Edit View), you
can also Hide them completely.
If you can't get it to work, you might post a screen shot with a
piece of the files and a shot of the dialog and maybe I can see
something out of place.
jeff
Re: Omit lines containing specified word using a Ruleset
Thanks this worked!
DiffMerge has been a great find for us as a development team. We're using it stand-alone and as our 3rd party diff tool in Visual Studio 2008
DiffMerge has been a great find for us as a development team. We're using it stand-alone and as our 3rd party diff tool in Visual Studio 2008
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: Omit lines containing specified word using a Ruleset
Cool! Thanks for the update and I'm glad everything worked out.
jeff
jeff