Omit lines containing specified word using a Ruleset

Support for our DiffMerge utility.

Moderator: SourceGear


Posts: 2
Joined: Thu Jul 01, 2010 8:13 am
PostPosted: Thu Jul 01, 2010 8:25 am
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

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Thu Jul 01, 2010 1:25 pm
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

Posts: 2
Joined: Thu Jul 01, 2010 8:13 am
PostPosted: Thu Jul 01, 2010 1:58 pm
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 :D

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Thu Jul 01, 2010 3:14 pm
Cool! Thanks for the update and I'm glad everything worked out.

jeff

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 2 guests

cron